editMessageCaption: Edit a caption

View source: R/bot.R

editMessageCaptionR Documentation

Edit a caption

Description

Use this method to edit captions of messages.

Usage

editMessageCaption(
  chat_id = NULL,
  message_id = NULL,
  inline_message_id = NULL,
  caption = NULL,
  parse_mode = 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.

caption

(Optional). New caption of the message.

parse_mode

(Optional). Send 'Markdown' or 'HTML', if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's 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_caption.


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