Skip to content

Commit e342b9f

Browse files
committed
Fix InlineQueryResultGame replymarkup do not to_dic.
1 parent 2e8151c commit e342b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telebot/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ def __init__(self, type, id, game_short_name, reply_markup=None):
14801480
def to_json(self):
14811481
json_dic = {'type': self.type, 'id': self.id, 'game_short_name': self.game_short_name}
14821482
if self.reply_markup:
1483-
json_dic['reply_markup'] = self.reply_markup
1483+
json_dic['reply_markup'] = self.reply_markup.to_dic()
14841484
return json.dumps(json_dic)
14851485

14861486

0 commit comments

Comments
 (0)