pub struct InlineQueryResultCachedVideoBuilder { /* private fields */ }Expand description
Represents a link to a video file stored on the Telegram servers. By default, this video 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 video.
Implementations§
source§impl InlineQueryResultCachedVideoBuilder
impl InlineQueryResultCachedVideoBuilder
pub fn new(id: String, video_file_id: String, title: String) -> Self
sourcepub fn set_video_file_id(self, video_file_id: String) -> Self
pub fn set_video_file_id(self, video_file_id: String) -> Self
A valid file identifier for the video file
sourcepub fn set_description(self, description: String) -> Self
pub fn set_description(self, description: String) -> Self
Optional. Short description of the result
sourcepub fn set_caption(self, caption: String) -> Self
pub fn set_caption(self, caption: String) -> Self
Optional. Caption of the video to be sent, 0-1024 characters after entities parsing
sourcepub fn set_parse_mode(self, parse_mode: String) -> Self
pub fn set_parse_mode(self, parse_mode: String) -> Self
Optional. Mode for parsing entities in the video caption. See formatting options for more details.
sourcepub fn set_caption_entities(self, caption_entities: Vec<MessageEntity>) -> Self
pub fn set_caption_entities(self, caption_entities: Vec<MessageEntity>) -> Self
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
sourcepub fn set_reply_markup(self, reply_markup: InlineKeyboardMarkup) -> Self
pub fn set_reply_markup(self, reply_markup: InlineKeyboardMarkup) -> Self
Optional. Inline keyboard attached to the message
sourcepub fn set_input_message_content(
self,
input_message_content: InputMessageContent
) -> Self
pub fn set_input_message_content( self, input_message_content: InputMessageContent ) -> Self
Optional. Content of the message to be sent instead of the video
pub fn build(self) -> InlineQueryResultCachedVideo
Trait Implementations§
source§impl Clone for InlineQueryResultCachedVideoBuilder
impl Clone for InlineQueryResultCachedVideoBuilder
source§fn clone(&self) -> InlineQueryResultCachedVideoBuilder
fn clone(&self) -> InlineQueryResultCachedVideoBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for InlineQueryResultCachedVideoBuilder
impl Default for InlineQueryResultCachedVideoBuilder
source§fn default() -> InlineQueryResultCachedVideoBuilder
fn default() -> InlineQueryResultCachedVideoBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InlineQueryResultCachedVideoBuilder
impl<'de> Deserialize<'de> for InlineQueryResultCachedVideoBuilder
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