mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add delete_reply_markup to Message
This commit is contained in:
parent
35f0451d81
commit
1eefb237a2
1 changed files with 10 additions and 0 deletions
|
|
@ -1413,6 +1413,16 @@ class Message(base.TelegramObject):
|
|||
return await self.bot.edit_message_reply_markup(chat_id=self.chat.id, message_id=self.message_id,
|
||||
reply_markup=reply_markup)
|
||||
|
||||
async def delete_reply_markup(self):
|
||||
"""
|
||||
Use this method to delete reply markup of messages sent by the bot or via the bot (for inline bots).
|
||||
|
||||
:return: On success, if edited message is sent by the bot, the edited Message is returned,
|
||||
otherwise True is returned.
|
||||
:rtype: :obj:`typing.Union[types.Message, base.Boolean]`
|
||||
"""
|
||||
return await self.bot.edit_message_reply_markup(chat_id=self.chat.id, message_id=self.message_id)
|
||||
|
||||
async def edit_live_location(self, latitude: base.Float, longitude: base.Float,
|
||||
reply_markup=None) -> typing.Union[Message, base.Boolean]:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue