Inject reply_markup

This commit is contained in:
Dan 2018-10-15 14:25:02 +02:00
parent d6c0e61456
commit 59c3aa0589

View File

@ -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)
)