Struct teloxide::types::InlineQueryResultCachedMpeg4Gif
source · pub struct InlineQueryResultCachedMpeg4Gif {
pub id: String,
pub mpeg4_file_id: String,
pub title: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity, Global>>,
pub reply_markup: Option<InlineKeyboardMarkup>,
pub input_message_content: Option<InputMessageContent>,
}
Expand description
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers.
By default, this animated MPEG-4 file will be sent by the user with an
optional caption. Alternatively, you can use input_message_content
to send
a message with the specified content instead of the animation.
Fields§
§id: String
Unique identifier for this result, 1-64 bytes.
mpeg4_file_id: String
A valid file identifier for the MP4 file.
title: Option<String>
Title for the result.
Caption of the MPEG-4 file to be sent, 0-1024 characters.
parse_mode: Option<ParseMode>
Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
List of special entities that appear in the caption, which can be
specified instead of parse_mode
.
reply_markup: Option<InlineKeyboardMarkup>
Inline keyboard attached to the message.
input_message_content: Option<InputMessageContent>
Content of the message to be sent instead of the video animation.
Implementations§
source§impl InlineQueryResultCachedMpeg4Gif
impl InlineQueryResultCachedMpeg4Gif
pub fn new<S1, S2>(id: S1, mpeg4_file_id: S2) -> InlineQueryResultCachedMpeg4Gifwhere
S1: Into<String>,
S2: Into<String>,
pub fn id<S>(self, val: S) -> InlineQueryResultCachedMpeg4Gifwhere
S: Into<String>,
pub fn title<S>(self, val: S) -> InlineQueryResultCachedMpeg4Gifwhere
S: Into<String>,
pub fn parse_mode(self, val: ParseMode) -> InlineQueryResultCachedMpeg4Gif
pub fn reply_markup(
self,
val: InlineKeyboardMarkup
) -> InlineQueryResultCachedMpeg4Gif
pub fn input_message_content(
self,
val: InputMessageContent
) -> InlineQueryResultCachedMpeg4Gif
Trait Implementations§
source§impl Clone for InlineQueryResultCachedMpeg4Gif
impl Clone for InlineQueryResultCachedMpeg4Gif
source§fn clone(&self) -> InlineQueryResultCachedMpeg4Gif
fn clone(&self) -> InlineQueryResultCachedMpeg4Gif
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for InlineQueryResultCachedMpeg4Gif
impl<'de> Deserialize<'de> for InlineQueryResultCachedMpeg4Gif
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<InlineQueryResultCachedMpeg4Gif, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<InlineQueryResultCachedMpeg4Gif, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl From<InlineQueryResultCachedMpeg4Gif> for InlineQueryResult
impl From<InlineQueryResultCachedMpeg4Gif> for InlineQueryResult
source§fn from(original: InlineQueryResultCachedMpeg4Gif) -> InlineQueryResult
fn from(original: InlineQueryResultCachedMpeg4Gif) -> InlineQueryResult
source§impl PartialEq<InlineQueryResultCachedMpeg4Gif> for InlineQueryResultCachedMpeg4Gif
impl PartialEq<InlineQueryResultCachedMpeg4Gif> for InlineQueryResultCachedMpeg4Gif
source§fn eq(&self, other: &InlineQueryResultCachedMpeg4Gif) -> bool
fn eq(&self, other: &InlineQueryResultCachedMpeg4Gif) -> bool
self
and other
values to be equal, and is used
by ==
.