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