mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-17 21:22:40 +00:00
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):
|
||||
return types.InputBotInlineMessageText(
|
||||
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)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user