From e57c761c408f832fac2394f896f4f012302a37ad Mon Sep 17 00:00:00 2001 From: Bunk100 <37146584+Bunk100@users.noreply.github.com> Date: Sat, 12 Oct 2019 18:03:31 +0300 Subject: [PATCH] Update message.py Second attempt to fix reply_markup --- aiogram/types/message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiogram/types/message.py b/aiogram/types/message.py index 3eda6328..819199ca 100644 --- a/aiogram/types/message.py +++ b/aiogram/types/message.py @@ -1569,7 +1569,7 @@ class Message(base.TelegramObject): chat_id: typing.Union[str, int], disable_notification: typing.Optional[bool] = None, reply_to_message_id: typing.Optional[int] = None, - reply_markup: typing.Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, None] = self.reply_markup, + reply_markup: typing.Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, None] = None, parse_mode: typing.Union[base.String, None] = None, ) -> Message: """ @@ -1582,7 +1582,7 @@ class Message(base.TelegramObject): :param parse_mode: :return: """ - kwargs = {"chat_id": chat_id} + kwargs = {"chat_id": chat_id, "reply_markup": self.reply_markup} text = self.text or self.caption if disable_notification is not None: