editMessageReplyMarkup: Edit a reply markup

View source: R/bot.R

editMessageReplyMarkupR Documentation

Edit a reply markup

Description

Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots).

Usage

editMessageReplyMarkup(
  chat_id = NULL,
  message_id = NULL,
  inline_message_id = NULL,
  reply_markup = NULL
)

Arguments

chat_id

(Optional). Unique identifier for the target chat or username of the target channel.

message_id

(Optional). Required if inline_message_id is not specified. Identifier of the sent message.

inline_message_id

(Optional). Required if chat_id and message_id are not specified. Identifier of the inline message.

reply_markup

(Optional). A Reply Markup parameter object, it can be either:

  • ReplyKeyboardMarkup

  • InlineKeyboardMarkup

  • ReplyKeyboardRemove

  • ForceReply

Details

You can also use it's snake_case equivalent edit_message_reply_markup.


telegram.bot documentation built on Sept. 7, 2022, 5:07 p.m.