mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update message.py
Second attempt to fix reply_markup
This commit is contained in:
parent
1f177360c4
commit
e57c761c40
1 changed files with 2 additions and 2 deletions
|
|
@ -1569,7 +1569,7 @@ class Message(base.TelegramObject):
|
||||||
chat_id: typing.Union[str, int],
|
chat_id: typing.Union[str, int],
|
||||||
disable_notification: typing.Optional[bool] = None,
|
disable_notification: typing.Optional[bool] = None,
|
||||||
reply_to_message_id: typing.Optional[int] = 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,
|
parse_mode: typing.Union[base.String, None] = None,
|
||||||
) -> Message:
|
) -> Message:
|
||||||
"""
|
"""
|
||||||
|
|
@ -1582,7 +1582,7 @@ class Message(base.TelegramObject):
|
||||||
:param parse_mode:
|
:param parse_mode:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
kwargs = {"chat_id": chat_id}
|
kwargs = {"chat_id": chat_id, "reply_markup": self.reply_markup}
|
||||||
text = self.text or self.caption
|
text = self.text or self.caption
|
||||||
|
|
||||||
if disable_notification is not None:
|
if disable_notification is not None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue