Fix InputTextMessageContent with empty reply markups

This commit is contained in:
Dan 2018-11-09 13:15:54 +01:00
parent 5ed904a2e4
commit 1ab17d8015

View File

@ -31,6 +31,6 @@ class InputTextMessageContent:
def write(self, reply_markup): def write(self, reply_markup):
return types.InputBotInlineMessageText( return types.InputBotInlineMessageText(
no_webpage=self.disable_web_page_preview or None, no_webpage=self.disable_web_page_preview or None,
reply_markup=reply_markup.write(), reply_markup=reply_markup.write() if reply_markup else None,
**self.style.parse(self.message_text) **self.style.parse(self.message_text)
) )