Fix captions being "None" for inline media results

This commit is contained in:
Dan 2020-08-26 08:09:12 +02:00
parent f06562b73d
commit 15f504a91f
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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