mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Merge branch 'asyncio-dev' of https://github.com/pyrogram/pyrogram into asyncio-dev
This commit is contained in:
commit
476b6b022f
1 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ class InlineQueryResultAnimation(InlineQueryResult):
|
|||
self.reply_markup = reply_markup
|
||||
self.input_message_content = input_message_content
|
||||
|
||||
def write(self):
|
||||
async def write(self):
|
||||
animation = types.InputWebDocument(
|
||||
url=self.animation_url,
|
||||
size=0,
|
||||
|
|
@ -121,7 +121,7 @@ class InlineQueryResultAnimation(InlineQueryResult):
|
|||
if self.input_message_content
|
||||
else types.InputBotInlineMessageMediaAuto(
|
||||
reply_markup=self.reply_markup.write() if self.reply_markup else None,
|
||||
**(Parser(None)).parse(self.caption, self.parse_mode)
|
||||
**await(Parser(None)).parse(self.caption, self.parse_mode)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue