Struct tg_bot_models::EditMessageMedia [−][src]
pub struct EditMessageMedia { pub chat_id: Option<PolymorphChatId>, pub message_id: Option<i64>, pub inline_message_id: Option<String>, pub media: InputMedia, pub reply_markup: Option<InlineKeyboardMarkup>, }
Use this method to 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. On success, if the edited message was sent by the bot, the edited Message is returned, otherwise True is returned.
Fields
chat_id: Option<PolymorphChatId>
Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_id: Option<i64>
Required if inline_message_id is not specified. Identifier of the sent message
inline_message_id: Option<String>
Required if chat_id and message_id are not specified. 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 a new inline keyboard.
Trait Implementations
impl Debug for EditMessageMedia
[src]
impl Debug for EditMessageMedia
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for EditMessageMedia
[src]
impl Clone for EditMessageMedia
fn clone(&self) -> EditMessageMedia
[src]
fn clone(&self) -> EditMessageMedia
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for EditMessageMedia
[src]
impl PartialEq for EditMessageMedia
fn eq(&self, other: &EditMessageMedia) -> bool
[src]
fn eq(&self, other: &EditMessageMedia) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EditMessageMedia) -> bool
[src]
fn ne(&self, other: &EditMessageMedia) -> bool
This method tests for !=
.
impl PartialOrd for EditMessageMedia
[src]
impl PartialOrd for EditMessageMedia
fn partial_cmp(&self, other: &EditMessageMedia) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &EditMessageMedia) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &EditMessageMedia) -> bool
[src]
fn lt(&self, other: &EditMessageMedia) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &EditMessageMedia) -> bool
[src]
fn le(&self, other: &EditMessageMedia) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &EditMessageMedia) -> bool
[src]
fn gt(&self, other: &EditMessageMedia) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &EditMessageMedia) -> bool
[src]
fn ge(&self, other: &EditMessageMedia) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for EditMessageMedia
impl Send for EditMessageMedia
impl Sync for EditMessageMedia
impl Sync for EditMessageMedia