pub struct InputMessageVideo {
pub video: InputFile,
pub thumbnail: Option<InputThumbnail>,
pub added_sticker_file_ids: Vec<i32>,
pub duration: i32,
pub width: i32,
pub height: i32,
pub supports_streaming: bool,
pub caption: Option<FormattedText>,
pub self_destruct_type: Option<MessageSelfDestructType>,
pub has_spoiler: bool,
}
Expand description
A video message
Fields§
§video: InputFile
Video to be sent
thumbnail: Option<InputThumbnail>
Video thumbnail; pass null to skip thumbnail uploading
added_sticker_file_ids: Vec<i32>
File identifiers of the stickers added to the video, if applicable
duration: i32
Duration of the video, in seconds
width: i32
Video width
height: i32
Video height
supports_streaming: bool
True, if the video is supposed to be streamed
caption: Option<FormattedText>
Video caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters
self_destruct_type: Option<MessageSelfDestructType>
Video self-destruct type; pass null if none; private chats only
has_spoiler: bool
True, if the video preview must be covered by a spoiler animation; not supported in secret chats
Trait Implementations§
Source§impl Clone for InputMessageVideo
impl Clone for InputMessageVideo
Source§fn clone(&self) -> InputMessageVideo
fn clone(&self) -> InputMessageVideo
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 Debug for InputMessageVideo
impl Debug for InputMessageVideo
Source§impl<'de> Deserialize<'de> for InputMessageVideo
impl<'de> Deserialize<'de> for InputMessageVideo
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
Source§impl PartialEq for InputMessageVideo
impl PartialEq for InputMessageVideo
Source§impl Serialize for InputMessageVideo
impl Serialize for InputMessageVideo
impl StructuralPartialEq for InputMessageVideo
Auto Trait Implementations§
impl Freeze for InputMessageVideo
impl RefUnwindSafe for InputMessageVideo
impl Send for InputMessageVideo
impl Sync for InputMessageVideo
impl Unpin for InputMessageVideo
impl UnwindSafe for InputMessageVideo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more