Skip to content

Commit 4ed6ba8

Browse files
yuinachanalissonlauffer
authored andcommitted
InputMessageContent.write is a coroutine
1 parent b2cf1be commit 4ed6ba8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/types/inline_mode/inline_query_result_animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ async def write(self, client: "pyrogram.Client"):
144144
thumb=thumb,
145145
content=animation,
146146
send_message=(
147-
self.input_message_content.write(client, self.reply_markup)
147+
await self.input_message_content.write(client, self.reply_markup)
148148
if self.input_message_content
149149
else raw.types.InputBotInlineMessageMediaAuto(
150150
reply_markup=await self.reply_markup.write(client) if self.reply_markup else None,

0 commit comments

Comments
 (0)