pub struct InlineQueryResultMpeg4GifBuilder { /* private fields */ }Expand description
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.
Implementations§
source§impl InlineQueryResultMpeg4GifBuilder
impl InlineQueryResultMpeg4GifBuilder
pub fn new(id: String, mpeg_4_url: String, thumb_url: String) -> Self
pub fn set_type(self, tg_type: String) -> Self
pub fn set_id(self, id: String) -> Self
pub fn set_mpeg_4_url(self, mpeg_4_url: String) -> Self
pub fn set_mpeg_4_width(self, mpeg_4_width: Option<i64>) -> Self
pub fn set_mpeg_4_height(self, mpeg_4_height: Option<i64>) -> Self
pub fn set_mpeg_4_duration(self, mpeg_4_duration: Option<i64>) -> Self
pub fn set_thumb_url(self, thumb_url: String) -> Self
pub fn set_thumb_mime_type(self, thumb_mime_type: Option<String>) -> Self
pub fn set_title(self, title: Option<String>) -> Self
pub fn set_caption(self, caption: Option<String>) -> Self
pub fn set_parse_mode(self, parse_mode: Option<String>) -> Self
pub fn set_caption_entities(
self,
caption_entities: Option<Vec<MessageEntity>>
) -> Self
pub fn set_reply_markup(self, reply_markup: Option<InlineKeyboardMarkup>) -> Self
pub fn set_input_message_content(
self,
input_message_content: Option<InputMessageContent>
) -> Self
pub fn build(self) -> InlineQueryResultMpeg4Gif
Trait Implementations§
source§impl<'de> Deserialize<'de> for InlineQueryResultMpeg4GifBuilder
impl<'de> Deserialize<'de> for InlineQueryResultMpeg4GifBuilder
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more