@@ -1584,6 +1584,7 @@ def __init__(self):
15841584 self .caption = None
15851585 self .reply_markup = None
15861586 self .input_message_content = None
1587+ self .parse_mode = None
15871588 self .payload_dic = {}
15881589
15891590 def to_json (self ):
@@ -1600,6 +1601,8 @@ def to_json(self):
16001601 json_dict ['reply_markup' ] = self .reply_markup .to_dic ()
16011602 if self .input_message_content :
16021603 json_dict ['input_message_content' ] = self .input_message_content .to_dic ()
1604+ if self .parse_mode :
1605+ json_dict ['parse_mode' ] = self .parse_mode
16031606 return json .dumps (json_dict )
16041607
16051608
@@ -1615,8 +1618,8 @@ def __init__(self, id, photo_file_id, title=None, description=None, caption=None
16151618 self .caption = caption
16161619 self .reply_markup = reply_markup
16171620 self .input_message_content = input_message_content
1621+ self .parse_mode = parse_mode
16181622 self .payload_dic ['photo_file_id' ] = photo_file_id
1619- self .payload_dic ['parse_mode' ] = parse_mode
16201623
16211624
16221625class InlineQueryResultCachedGif (BaseInlineQueryResultCached ):
@@ -1631,8 +1634,8 @@ def __init__(self, id, gif_file_id, title=None, description=None, caption=None,
16311634 self .caption = caption
16321635 self .reply_markup = reply_markup
16331636 self .input_message_content = input_message_content
1637+ self .parse_mode = parse_mode
16341638 self .payload_dic ['gif_file_id' ] = gif_file_id
1635- self .payload_dic ['parse_mode' ] = parse_mode
16361639
16371640
16381641class InlineQueryResultCachedMpeg4Gif (BaseInlineQueryResultCached ):
@@ -1647,8 +1650,8 @@ def __init__(self, id, mpeg4_file_id, title=None, description=None, caption=None
16471650 self .caption = caption
16481651 self .reply_markup = reply_markup
16491652 self .input_message_content = input_message_content
1653+ self .parse_mode = parse_mode
16501654 self .payload_dic ['mpeg4_file_id' ] = mpeg4_file_id
1651- self .payload_dic ['parse_mode' ] = parse_mode
16521655
16531656
16541657class InlineQueryResultCachedSticker (BaseInlineQueryResultCached ):
@@ -1674,8 +1677,8 @@ def __init__(self, id, document_file_id, title, description=None, caption=None,
16741677 self .caption = caption
16751678 self .reply_markup = reply_markup
16761679 self .input_message_content = input_message_content
1680+ self .parse_mode = parse_mode
16771681 self .payload_dic ['document_file_id' ] = document_file_id
1678- self .payload_dic ['parse_mode' ] = parse_mode
16791682
16801683
16811684class InlineQueryResultCachedVideo (BaseInlineQueryResultCached ):
@@ -1690,8 +1693,8 @@ def __init__(self, id, video_file_id, title, description=None, caption=None, par
16901693 self .caption = caption
16911694 self .reply_markup = reply_markup
16921695 self .input_message_content = input_message_content
1696+ self .parse_mode = parse_mode
16931697 self .payload_dic ['video_file_id' ] = video_file_id
1694- self .payload_dic ['parse_mode' ] = parse_mode
16951698
16961699
16971700class InlineQueryResultCachedVoice (BaseInlineQueryResultCached ):
@@ -1705,8 +1708,8 @@ def __init__(self, id, voice_file_id, title, caption=None, parse_mode=None, repl
17051708 self .caption = caption
17061709 self .reply_markup = reply_markup
17071710 self .input_message_content = input_message_content
1711+ self .parse_mode = parse_mode
17081712 self .payload_dic ['voice_file_id' ] = voice_file_id
1709- self .payload_dic ['parse_mode' ] = parse_mode
17101713
17111714
17121715class InlineQueryResultCachedAudio (BaseInlineQueryResultCached ):
@@ -1718,8 +1721,8 @@ def __init__(self, id, audio_file_id, caption=None, parse_mode=None, reply_marku
17181721 self .caption = caption
17191722 self .reply_markup = reply_markup
17201723 self .input_message_content = input_message_content
1724+ self .parse_mode = parse_mode
17211725 self .payload_dic ['audio_file_id' ] = audio_file_id
1722- self .payload_dic ['parse_mode' ] = parse_mode
17231726
17241727
17251728# Games
0 commit comments