TelegramBot.editMessageMedia

Edit audio, document, photo or video message

Overloads take either chat_id and message_id or inline_message_id

  1. Message editMessageMedia(T chat_id, int message_id, InputMedia media)
    struct TelegramBot
    @trusted
    editMessageMedia
    (
    T
    )
  2. Message editMessageMedia(string inline_message_id, InputMedia media)
  3. Message editMessageMedia(EditMessageMediaMethod 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

media InputMedia

New media content of the message

Return Value

Type: Message

Edited Message

Throws

TelegramBotException on errors

See Also

Meta