@@ -1605,6 +1605,7 @@ def __init__(self):
16051605 self .caption = None
16061606 self .reply_markup = None
16071607 self .input_message_content = None
1608+ self .parse_mode = None
16081609 self .payload_dic = {}
16091610
16101611 def to_json (self ):
@@ -1621,6 +1622,8 @@ def to_json(self):
16211622 json_dict ['reply_markup' ] = self .reply_markup .to_dic ()
16221623 if self .input_message_content :
16231624 json_dict ['input_message_content' ] = self .input_message_content .to_dic ()
1625+ if self .parse_mode :
1626+ json_dict ['parse_mode' ] = self .parse_mode
16241627 return json .dumps (json_dict )
16251628
16261629
@@ -1636,8 +1639,8 @@ def __init__(self, id, photo_file_id, title=None, description=None, caption=None
16361639 self .caption = caption
16371640 self .reply_markup = reply_markup
16381641 self .input_message_content = input_message_content
1642+ self .parse_mode = parse_mode
16391643 self .payload_dic ['photo_file_id' ] = photo_file_id
1640- self .payload_dic ['parse_mode' ] = parse_mode
16411644
16421645
16431646class InlineQueryResultCachedGif (BaseInlineQueryResultCached ):
@@ -1652,8 +1655,8 @@ def __init__(self, id, gif_file_id, title=None, description=None, caption=None,
16521655 self .caption = caption
16531656 self .reply_markup = reply_markup
16541657 self .input_message_content = input_message_content
1658+ self .parse_mode = parse_mode
16551659 self .payload_dic ['gif_file_id' ] = gif_file_id
1656- self .payload_dic ['parse_mode' ] = parse_mode
16571660
16581661
16591662class InlineQueryResultCachedMpeg4Gif (BaseInlineQueryResultCached ):
@@ -1668,8 +1671,8 @@ def __init__(self, id, mpeg4_file_id, title=None, description=None, caption=None
16681671 self .caption = caption
16691672 self .reply_markup = reply_markup
16701673 self .input_message_content = input_message_content
1674+ self .parse_mode = parse_mode
16711675 self .payload_dic ['mpeg4_file_id' ] = mpeg4_file_id
1672- self .payload_dic ['parse_mode' ] = parse_mode
16731676
16741677
16751678class InlineQueryResultCachedSticker (BaseInlineQueryResultCached ):
@@ -1695,8 +1698,8 @@ def __init__(self, id, document_file_id, title, description=None, caption=None,
16951698 self .caption = caption
16961699 self .reply_markup = reply_markup
16971700 self .input_message_content = input_message_content
1701+ self .parse_mode = parse_mode
16981702 self .payload_dic ['document_file_id' ] = document_file_id
1699- self .payload_dic ['parse_mode' ] = parse_mode
17001703
17011704
17021705class InlineQueryResultCachedVideo (BaseInlineQueryResultCached ):
@@ -1711,8 +1714,8 @@ def __init__(self, id, video_file_id, title, description=None, caption=None, par
17111714 self .caption = caption
17121715 self .reply_markup = reply_markup
17131716 self .input_message_content = input_message_content
1717+ self .parse_mode = parse_mode
17141718 self .payload_dic ['video_file_id' ] = video_file_id
1715- self .payload_dic ['parse_mode' ] = parse_mode
17161719
17171720
17181721class InlineQueryResultCachedVoice (BaseInlineQueryResultCached ):
@@ -1726,8 +1729,8 @@ def __init__(self, id, voice_file_id, title, caption=None, parse_mode=None, repl
17261729 self .caption = caption
17271730 self .reply_markup = reply_markup
17281731 self .input_message_content = input_message_content
1732+ self .parse_mode = parse_mode
17291733 self .payload_dic ['voice_file_id' ] = voice_file_id
1730- self .payload_dic ['parse_mode' ] = parse_mode
17311734
17321735
17331736class InlineQueryResultCachedAudio (BaseInlineQueryResultCached ):
@@ -1739,8 +1742,8 @@ def __init__(self, id, audio_file_id, caption=None, parse_mode=None, reply_marku
17391742 self .caption = caption
17401743 self .reply_markup = reply_markup
17411744 self .input_message_content = input_message_content
1745+ self .parse_mode = parse_mode
17421746 self .payload_dic ['audio_file_id' ] = audio_file_id
1743- self .payload_dic ['parse_mode' ] = parse_mode
17441747
17451748
17461749# Games
0 commit comments