diff --git a/AUTHORS.rst b/AUTHORS.rst index d5565b8c01a..ada18a4cecc 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -46,6 +46,7 @@ The following wonderful people contributed directly or indirectly to this projec - `Evan Haberecht `_ - `Evgeny Denisov `_ - `evgfilim1 `_ +- `ExalFabu `_ - `franciscod `_ - `gamgi `_ - `Gauthamram Ravichandran `_ diff --git a/telegram/_bot.py b/telegram/_bot.py index 879c31664eb..2c3c268a8a1 100644 --- a/telegram/_bot.py +++ b/telegram/_bot.py @@ -3374,6 +3374,10 @@ async def edit_message_text( """ Use this method to edit text and game messages. + Note: + It is currently only possible to edit messages without + :attr:`telegram.Message.reply_markup` or with inline keyboards. + Args: chat_id (:obj:`int` | :obj:`str`, optional): Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel @@ -3466,6 +3470,10 @@ async def edit_message_caption( """ Use this method to edit captions of messages. + Note: + It is currently only possible to edit messages without + :attr:`telegram.Message.reply_markup` or with inline keyboards + Args: chat_id (:obj:`int` | :obj:`str`, optional): Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel @@ -3556,6 +3564,10 @@ async def edit_message_media( message is edited, a new file can't be uploaded; use a previously uploaded file via its :attr:`~telegram.File.file_id` or specify a URL. + Note: + It is currently only possible to edit messages without + :attr:`telegram.Message.reply_markup` or with inline keyboards + Args: media (:class:`telegram.InputMedia`): An object for a new media content of the message. @@ -3630,6 +3642,10 @@ async def edit_message_reply_markup( Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots). + Note: + It is currently only possible to edit messages without + :attr:`telegram.Message.reply_markup` or with inline keyboards + Args: chat_id (:obj:`int` | :obj:`str`, optional): Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel