mirror of https://github.com/coddrago/Heroku
[test] rollback
parent
7fc501ebd7
commit
55fc03f4ac
|
@ -12,7 +12,6 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from aiogram import Bot
|
|
||||||
from aiogram.types import CallbackQuery
|
from aiogram.types import CallbackQuery
|
||||||
from aiogram.types import InlineQuery as AiogramInlineQuery
|
from aiogram.types import InlineQuery as AiogramInlineQuery
|
||||||
from aiogram.types import InlineQueryResultArticle, InputTextMessageContent
|
from aiogram.types import InlineQueryResultArticle, InputTextMessageContent
|
||||||
|
@ -208,18 +207,13 @@ class InlineQuery(AiogramInlineQuery):
|
||||||
"""Modified version of original Aiogram InlineQuery"""
|
"""Modified version of original Aiogram InlineQuery"""
|
||||||
|
|
||||||
model_config = ConfigDict(frozen=False)
|
model_config = ConfigDict(frozen=False)
|
||||||
#
|
|
||||||
def __init__(
|
def __init__(self, inline_query: AiogramInlineQuery):
|
||||||
self,
|
|
||||||
inline_query: AiogramInlineQuery,
|
|
||||||
bot: "Bot",
|
|
||||||
):
|
|
||||||
super().__init__(**inline_query.model_dump())
|
super().__init__(**inline_query.model_dump())
|
||||||
|
|
||||||
for attr in {"id", "from_user", "query", "offset", "chat_type", "location"}:
|
for attr in {"id", "from_user", "query", "offset", "chat_type", "location"}:
|
||||||
setattr(self, attr, getattr(inline_query, attr, None))
|
setattr(self, attr, getattr(inline_query, attr, None))
|
||||||
|
|
||||||
self.as_(bot.bot)
|
|
||||||
self.inline_query = inline_query
|
self.inline_query = inline_query
|
||||||
self.args = (
|
self.args = (
|
||||||
self.inline_query.query.split(maxsplit=1)[1]
|
self.inline_query.query.split(maxsplit=1)[1]
|
||||||
|
|
Loading…
Reference in New Issue