Telegram - Update message action

The Update message action edits the text of an existing message in Telegram.

BOTS CAN ONLY EDIT THEIR OWN MESSAGES

This action can only edit a message the bot itself sent. Editing a message from another user or bot fails. Messages can only be edited within 48 hours of being sent.

Input

Input fieldDescription
Chat IDEnter the unique identifier for the target chat or the username of the target channel. Required if Inline message ID isn't specified.
Message IDEnter the identifier of the message to edit. Required if Inline message ID isn't specified.
Inline message IDEnter the identifier of the inline message to edit. Required if Chat ID and Message ID aren't specified.
MessageEnter the new text of the message.
Parse modeOptional. Select the mode to format the message text with bold, italic, or other styling. Options are Markdown, MarkdownV2, or HTML. Leave blank for plain text.
Disable web page previewOptional. Select whether to disable link previews for links in this message.
Reply markupOptional. Enter a JSON-serialized inline keyboard, custom reply keyboard, or other reply markup object.

Output

This action returns the updated message. Refer to the Telegram Bot API Message documentation for more information on available output fields.

Output fieldDescription
Message IDThe message's unique identifier inside the chat.
FromThe bot that sent the message.
ChatThe chat the message belongs to.
DateThe Unix timestamp the message was originally sent.
Edit dateThe Unix timestamp the message was last edited.
TextThe updated text of the message.

Last updated: