Struct teloxide_core::payloads::EditMessageMediaInline[][src]

#[must_use = "Requests do nothing unless sent"]pub struct EditMessageMediaInline {
    pub inline_message_id: String,
    pub media: InputMedia,
    pub reply_markup: Option<InlineKeyboardMarkup>,
}

Use this method to edit animation, audio, document, photo, or video messages. If a message is a part of a message album, then it can be edited only to a photo or a video. Otherwise, message type can be changed arbitrarily. When inline message is edited, new file can’t be uploaded. Use previously uploaded file via its file_id or specify a URL. On success, True is returned.

See also: EditMessageMedia

Fields

inline_message_id: String

Identifier of the inline message

media: InputMedia

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

reply_markup: Option<InlineKeyboardMarkup>

A JSON-serialized object for an inline keyboard.

Implementations

impl EditMessageMediaInline[src]

pub fn new(inline_message_id: impl Into<String>, media: InputMedia) -> Self[src]

Trait Implementations

impl Clone for EditMessageMediaInline[src]

impl Debug for EditMessageMediaInline[src]

impl Eq for EditMessageMediaInline[src]

impl Hash for EditMessageMediaInline[src]

impl MultipartPayload for EditMessageMediaInline[src]

impl PartialEq<EditMessageMediaInline> for EditMessageMediaInline[src]

impl Payload for EditMessageMediaInline[src]

type Output = True

The return type of a Telegram method. Read more

impl Serialize for EditMessageMediaInline[src]

impl StructuralEq for EditMessageMediaInline[src]

impl StructuralPartialEq for EditMessageMediaInline[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.