From 15f504a91f87c7d911e7e63d33eb04c68708a57e Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 26 Aug 2020 08:09:12 +0200 Subject: [PATCH] Fix captions being "None" for inline media results --- pyrogram/types/inline_mode/inline_query_result_animation.py | 2 +- pyrogram/types/inline_mode/inline_query_result_photo.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/types/inline_mode/inline_query_result_animation.py b/pyrogram/types/inline_mode/inline_query_result_animation.py index bd0e7037..72c290f0 100644 --- a/pyrogram/types/inline_mode/inline_query_result_animation.py +++ b/pyrogram/types/inline_mode/inline_query_result_animation.py @@ -74,7 +74,7 @@ class InlineQueryResultAnimation(InlineQueryResult): id: str = None, title: str = None, description: str = None, - caption: str = None, + caption: str = "", parse_mode: Union[str, None] = object, reply_markup: "types.InlineKeyboardMarkup" = None, input_message_content: "types.InputMessageContent" = None diff --git a/pyrogram/types/inline_mode/inline_query_result_photo.py b/pyrogram/types/inline_mode/inline_query_result_photo.py index 7287abc0..6d6ae99d 100644 --- a/pyrogram/types/inline_mode/inline_query_result_photo.py +++ b/pyrogram/types/inline_mode/inline_query_result_photo.py @@ -74,7 +74,7 @@ class InlineQueryResultPhoto(InlineQueryResult): id: str = None, title: str = None, description: str = None, - caption: str = None, + caption: str = "", parse_mode: Union[str, None] = object, reply_markup: "types.InlineKeyboardMarkup" = None, input_message_content: "types.InputMessageContent" = None