TelegramBot.editMessageCaption

Edit caption of a message

Overloads take either chat_id and message_id or inline_message_id

  1. Message editMessageCaption(T chat_id, int message_id, string caption)
    struct TelegramBot
    @trusted
    editMessageCaption
    (
    T
    )
    (,,
    string caption
    )
  2. Message editMessageCaption(string inline_message_id, string caption)
  3. Message editMessageCaption(EditMessageCaptionMethod m)

Parameters

chat_id T

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

message_id int

Identifier of the sent message

caption string

New caption of the message

Return Value

Type: Message

Edited Message

Throws

TelegramBotException on errors

See Also

Meta