Skip to content

Note on editing with reply markups #3121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ The following wonderful people contributed directly or indirectly to this projec
- `Evan Haberecht <https://github.com/habereet>`_
- `Evgeny Denisov <https://github.com/eIGato>`_
- `evgfilim1 <https://github.com/evgfilim1>`_
- `ExalFabu <https://github.com/ExalFabu>`_
- `franciscod <https://github.com/franciscod>`_
- `gamgi <https://github.com/gamgi>`_
- `Gauthamram Ravichandran <https://github.com/GauthamramRavichandran>`_
Expand Down
16 changes: 16 additions & 0 deletions telegram/_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down