mirror of https://github.com/coddrago/Heroku
parent
a4029962c8
commit
4d79ea8e0a
|
@ -135,14 +135,6 @@ class InlineCall(CallbackQuery, InlineMessage):
|
||||||
dump["id"] = dump.pop("result_id")
|
dump["id"] = dump.pop("result_id")
|
||||||
dump["chat_instance"] = ""
|
dump["chat_instance"] = ""
|
||||||
CallbackQuery.__init__(self, **dump)
|
CallbackQuery.__init__(self, **dump)
|
||||||
for attr in {
|
|
||||||
"from_user",
|
|
||||||
"message",
|
|
||||||
"inline_message_id",
|
|
||||||
"data",
|
|
||||||
"game_short_name",
|
|
||||||
}:
|
|
||||||
setattr(self, attr, getattr(call, attr, None))
|
|
||||||
|
|
||||||
self.as_(inline_manager.bot)
|
self.as_(inline_manager.bot)
|
||||||
|
|
||||||
|
@ -168,17 +160,6 @@ class BotInlineCall(CallbackQuery, BotInlineMessage):
|
||||||
):
|
):
|
||||||
CallbackQuery.__init__(self, **call.model_dump())
|
CallbackQuery.__init__(self, **call.model_dump())
|
||||||
|
|
||||||
for attr in {
|
|
||||||
"id",
|
|
||||||
"from_user",
|
|
||||||
"message",
|
|
||||||
"chat",
|
|
||||||
"chat_instance",
|
|
||||||
"data",
|
|
||||||
"game_short_name",
|
|
||||||
}:
|
|
||||||
setattr(self, attr, getattr(call, attr, None))
|
|
||||||
|
|
||||||
self.original_call = call
|
self.original_call = call
|
||||||
|
|
||||||
BotInlineMessage.__init__(
|
BotInlineMessage.__init__(
|
||||||
|
@ -212,9 +193,6 @@ class InlineQuery(AiogramInlineQuery):
|
||||||
def __init__(self, inline_query: AiogramInlineQuery):
|
def __init__(self, inline_query: AiogramInlineQuery):
|
||||||
super().__init__(**inline_query.model_dump())
|
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.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