Fix send_message with buttons not always returning ReplyMarkup

This commit is contained in:
Lonami Exo
2019-01-12 12:53:01 +01:00
parent d31aaa5d0d
commit fbf7f75b00
2 changed files with 3 additions and 2 deletions

View File

@@ -648,7 +648,7 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC):
kwargs['link_preview'] = bool(self.web_preview)
if 'buttons' not in kwargs:
kwargs['buttons'] = self.buttons
kwargs['buttons'] = self.reply_markup
return await self._client.edit_message(
await self.get_input_chat(), self.id,