From 59c3aa05896582348cdcb81b357efc5206808338 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 15 Oct 2018 14:25:02 +0200 Subject: [PATCH] Inject reply_markup --- .../client/types/input_media/input_text_message_content.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/types/input_media/input_text_message_content.py b/pyrogram/client/types/input_media/input_text_message_content.py index b6c3435f..1dffff43 100644 --- a/pyrogram/client/types/input_media/input_text_message_content.py +++ b/pyrogram/client/types/input_media/input_text_message_content.py @@ -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) )