From 55fc03f4acaa68b0a32e716d8fef1f7e8a19c1e8 Mon Sep 17 00:00:00 2001 From: "ZetGo | Aleksej K." <73279716+ZetGoHack@users.noreply.github.com> Date: Sat, 24 May 2025 22:55:58 +0300 Subject: [PATCH] [test] rollback --- heroku/inline/types.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/heroku/inline/types.py b/heroku/inline/types.py index e4c07ba..0ff3f39 100644 --- a/heroku/inline/types.py +++ b/heroku/inline/types.py @@ -12,7 +12,6 @@ import logging -from aiogram import Bot from aiogram.types import CallbackQuery from aiogram.types import InlineQuery as AiogramInlineQuery from aiogram.types import InlineQueryResultArticle, InputTextMessageContent @@ -208,18 +207,13 @@ class InlineQuery(AiogramInlineQuery): """Modified version of original Aiogram InlineQuery""" model_config = ConfigDict(frozen=False) -# - def __init__( - self, - inline_query: AiogramInlineQuery, - bot: "Bot", - ): + + def __init__(self, inline_query: AiogramInlineQuery): super().__init__(**inline_query.model_dump()) for attr in {"id", "from_user", "query", "offset", "chat_type", "location"}: setattr(self, attr, getattr(inline_query, attr, None)) - self.as_(bot.bot) self.inline_query = inline_query self.args = ( self.inline_query.query.split(maxsplit=1)[1]