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, reply keyboard, or other reply markup of an existing message in a specified chat.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username (@channelusername).
  • Message ID (required) — Unique identifier of the target message whose reply markup will be edited.
  • Reply Markup (JSON) — Inline keyboard, reply keyboard, or other reply markup in JSON format to replace the current one.

Output shape

a single message object as returned by the Telegram Bot API to confirm the edit operation.

The operation returns the updated message data encapsulated in a JSON object. If the reply markup is omitted or empty, it removes the existing reply markup from the message.

Links

Discussion