mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 21:38:04 +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()
|
||||
|
||||
def write(self):
|
||||
def write(self, reply_markup):
|
||||
return types.InputBotInlineMessageText(
|
||||
no_webpage=self.disable_web_page_preview or None,
|
||||
reply_markup=reply_markup.write(),
|
||||
**self.style.parse(self.message_text)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user