From 1ab17d801553f3e2ef86723b54aac70b42cdd5b3 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 9 Nov 2018 13:15:54 +0100 Subject: [PATCH] Fix InputTextMessageContent with empty reply markups --- pyrogram/client/types/input_media/input_text_message_content.py | 2 +- 1 file changed, 1 insertion(+), 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 1dffff43..3c74d34d 100644 --- a/pyrogram/client/types/input_media/input_text_message_content.py +++ b/pyrogram/client/types/input_media/input_text_message_content.py @@ -31,6 +31,6 @@ class InputTextMessageContent: def write(self, reply_markup): return types.InputBotInlineMessageText( 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) )