Struct telegram_bot2::models::SendVideoBuilder
source · pub struct SendVideoBuilder { /* private fields */ }Expand description
Builder for the SendVideo structure
Implementations§
source§impl SendVideoBuilder
impl SendVideoBuilder
sourcepub fn new(chat_id: ChatId, video: SentFile) -> Self
pub fn new(chat_id: ChatId, video: SentFile) -> Self
Instantiate the builder with the fields message_thread_id, chat_id, video, duration, width, height, thumb, caption, parse_mode, caption_entities, has_spoiler, supports_streaming, disable_notification, protect_content, reply_to_message_id, allow_sending_without_reply, reply_markup
sourcepub fn message_thread_id(self, val: i64) -> Self
pub fn message_thread_id(self, val: i64) -> Self
Set the field message_thread_id to the given value
sourcepub fn parse_mode(self, val: String) -> Self
pub fn parse_mode(self, val: String) -> Self
Set the field parse_mode to the given value
sourcepub fn caption_entities(self, val: Vec<MessageEntity>) -> Self
pub fn caption_entities(self, val: Vec<MessageEntity>) -> Self
Set the field caption_entities to the given value
sourcepub fn has_spoiler(self, val: bool) -> Self
pub fn has_spoiler(self, val: bool) -> Self
Set the field has_spoiler to the given value
sourcepub fn supports_streaming(self, val: bool) -> Self
pub fn supports_streaming(self, val: bool) -> Self
Set the field supports_streaming to the given value
sourcepub fn disable_notification(self, val: bool) -> Self
pub fn disable_notification(self, val: bool) -> Self
Set the field disable_notification to the given value
sourcepub fn protect_content(self, val: bool) -> Self
pub fn protect_content(self, val: bool) -> Self
Set the field protect_content to the given value
sourcepub fn reply_to_message_id(self, val: i64) -> Self
pub fn reply_to_message_id(self, val: i64) -> Self
Set the field reply_to_message_id to the given value
sourcepub fn allow_sending_without_reply(self, val: bool) -> Self
pub fn allow_sending_without_reply(self, val: bool) -> Self
Set the field allow_sending_without_reply to the given value
sourcepub fn reply_markup(self, val: ReplyMarkup) -> Self
pub fn reply_markup(self, val: ReplyMarkup) -> Self
Set the field reply_markup to the given value