Fix InputTextMessageContent with empty reply markups
This commit is contained in:
parent
5ed904a2e4
commit
1ab17d8015
@ -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)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user