[test] idk

pull/138/head
ZetGo | Aleksej K. 2025-05-24 19:24:38 +03:00
parent c30ea41f54
commit 798d720d56
1 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@
import logging
from aiogram import Bot
from aiogram.types import CallbackQuery
from aiogram.types import InlineQuery as AiogramInlineQuery
from aiogram.types import InlineQueryResultArticle, InputTextMessageContent
@ -211,14 +212,14 @@ class InlineQuery(AiogramInlineQuery):
def __init__(
self,
inline_query: AiogramInlineQuery,
inline_manager: "InlineManager", # type: ignore # noqa: F821
bot: "Bot",
):
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_(inline_manager.bot)
self.as_(bot.bot)
self.inline_query = inline_query
self.args = (
self.inline_query.query.split(maxsplit=1)[1]