mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-17 21:22:40 +00:00
Inject reply_markup
This commit is contained in:
parent
d6c0e61456
commit
59c3aa0589
@ -28,8 +28,9 @@ class InputTextMessageContent:
|
|||||||
|
|
||||||
self.style = HTML() if parse_mode.lower() == "html" else Markdown()
|
self.style = HTML() if parse_mode.lower() == "html" else Markdown()
|
||||||
|
|
||||||
def write(self):
|
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(),
|
||||||
**self.style.parse(self.message_text)
|
**self.style.parse(self.message_text)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user