mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-09 00:14:50 +00:00
Fix InputTextMessageContent with empty reply markups
This commit is contained in:
parent
5ed904a2e4
commit
1ab17d8015
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue