Telegram Bot icon

Telegram Bot

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

Actions101

Message → Edit Message Reply Markup

AI-generated

Summary

Edit the inline keyboard or other reply markup of a Telegram message identified by chat ID and message ID.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username (@channelusername) to identify where the message is located.
  • Message ID (required) — Unique identifier of the target message whose reply markup is to be edited.
  • Reply Markup (JSON) — The new inline keyboard, reply keyboard, or other reply markup formatted as JSON to replace the existing markup on the message.

Output shape

a single record representing the edited message object returned by the Telegram Bot API

The response contains the updated message data; if the reply markup is a string, it is parsed as JSON before sending. Errors are handled and surfaced as node errors or in output if 'continue on fail' is enabled.

Links

Discussion