Skip to content

Commit 6b521b4

Browse files
SpEcHiDekrau
andcommitted
fix: set description correctly when send InlineQueryResultAnimation
KurimuzonAkuma/kurigram#262 Co-authored-by: Krau <[email protected]>
1 parent e9d0f7a commit 6b521b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyrogram/types/inline_mode/inline_query_result_animation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ class InlineQueryResultAnimation(InlineQueryResult):
6565
title (``str``, *optional*):
6666
Title for the result.
6767
68+
description (``str``, *optional*):
69+
Short description of the result.
70+
6871
caption (``str``, *optional*):
6972
Caption of the animation to be sent, 0-1024 characters.
7073
@@ -185,6 +188,7 @@ async def write(self, client: "pyrogram.Client"):
185188
title=self.title,
186189
thumb=thumb,
187190
content=animation,
191+
description=self.description,
188192
send_message=(
189193
await self.input_message_content.write(client, self.reply_markup)
190194
if self.input_message_content

0 commit comments

Comments
 (0)