Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Message → Edit Message Media

AI-generated

Summary

Edit the media content of an existing message in a specified Telegram chat by providing the chat ID, message ID, and a JSON object describing the new media.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username (@channelusername).
  • Message ID (required) — Unique identifier of the target message to edit.
  • Media (JSON) (required) — JSON object defining the new media content to replace the existing message media.

Output shape

a single message object representing the updated message.

Returns the result object from the Telegram API's editMessageMedia call. Errors are thrown for API failures unless 'Continue On Fail' is enabled in the node settings.

Links

Discussion