Skip to content

Commit 1ab17d8

Browse files
committed
Fix InputTextMessageContent with empty reply markups
1 parent 5ed904a commit 1ab17d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrogram/client/types/input_media/input_text_message_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ def __init__(self, message_text: str, parse_mode: str = "", disable_web_page_pre
3131
def write(self, reply_markup):
3232
return types.InputBotInlineMessageText(
3333
no_webpage=self.disable_web_page_preview or None,
34-
reply_markup=reply_markup.write(),
34+
reply_markup=reply_markup.write() if reply_markup else None,
3535
**self.style.parse(self.message_text)
3636
)

0 commit comments

Comments
 (0)