Update message.py

This commit is contained in:
Bunk100 2019-10-12 17:59:32 +03:00 committed by GitHub
parent e32a45f4f8
commit 1f177360c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1596,7 +1596,7 @@ class Message(base.TelegramObject):
if parse_mode == 'markdown':
text = self.md_text if (self.text or self.caption) else None
if reply_markup:
kwargs["reply_markup"] = self.reply_markup
kwargs["reply_markup"] = reply_markup
if self.text:
return await self.bot.send_message(text=text, **kwargs)