Struct telbot_types::message::EditMessageMedia[][src]

pub struct EditMessageMedia {
    pub chat_id: ChatId,
    pub message_id: i64,
    pub media: InputMedia,
    pub reply_markup: Option<InlineKeyboardMarkup>,
}
Expand description

Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can’t be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, the edited Message is returned.

Fields

chat_id: ChatId

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

message_id: i64

Identifier of the message to edit

media: InputMedia

A JSON-serialized object for a new media content of the message

reply_markup: Option<InlineKeyboardMarkup>

A JSON-serialized object for a new inline keyboard.

Implementations

Create a new editMessageMedia request

Set reply markup

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.