2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-27 20:37:54 +00:00

Fix Message.copy ReplyMarkup (#604)

This commit is contained in:
Ripe 2021-02-27 18:57:12 +00:00 committed by GitHub
parent 1afc998061
commit a390eceba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2875,7 +2875,7 @@ class Message(Object, Update):
disable_notification=disable_notification,
reply_to_message_id=reply_to_message_id,
schedule_date=schedule_date,
reply_markup=self.reply_markup or reply_markup
reply_markup=reply_markup or self.reply_markup
)
elif self.media:
send_media = partial(
@ -2884,7 +2884,7 @@ class Message(Object, Update):
disable_notification=disable_notification,
reply_to_message_id=reply_to_message_id,
schedule_date=schedule_date,
reply_markup=self.reply_markup or reply_markup
reply_markup=reply_markup or self.reply_markup
)
if self.photo: