InputMessageContent.write is a coroutine

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
reaitten 2022-11-18 20:44:29 -05:00 committed by wulan17
parent 08248222bb
commit 344256d92b
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -144,7 +144,7 @@ class InlineQueryResultAnimation(InlineQueryResult):
thumb=thumb, thumb=thumb,
content=animation, content=animation,
send_message=( send_message=(
self.input_message_content.write(client, self.reply_markup) await self.input_message_content.write(client, self.reply_markup)
if self.input_message_content if self.input_message_content
else raw.types.InputBotInlineMessageMediaAuto( else raw.types.InputBotInlineMessageMediaAuto(
reply_markup=await self.reply_markup.write(client) if self.reply_markup else None, reply_markup=await self.reply_markup.write(client) if self.reply_markup else None,