[][src]Struct tgbot::methods::EditMessageMedia

pub struct EditMessageMedia { /* fields omitted */ }

Edit 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

Methods

impl EditMessageMedia[src]

pub fn new<C: Into<ChatId>>(
    chat_id: C,
    message_id: Integer,
    media: InputMedia
) -> Self
[src]

Creates a new EditMessageMedia

Arguments

  • chat_id - Unique identifier for the target chat
  • message_id - Identifier of the sent message
  • media - New media content of the message

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

Creates a new EditMessageMedia

Arguments

  • inline_message_id - Identifier of the inline message
  • media - New media content of the message

pub fn reply_markup<I: Into<InlineKeyboardMarkup>>(
    self,
    reply_markup: I
) -> Result<Self, InlineKeyboardError>
[src]

New inline keyboard

Trait Implementations

impl Debug for EditMessageMedia[src]

impl Method for EditMessageMedia[src]

type Response = EditMessageResult

Type of successful result in API response

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<T> From<T> for T[src]

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

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.