pub struct InputMediaVideo {
pub type_tl: String,
pub media: String,
pub caption: Option<String>,
pub parse_mode: Option<String>,
pub width: Option<i64>,
pub height: Option<i64>,
pub duration: Option<i64>,
pub supports_streaming: Option<bool>,
}Expand description
Represents a video to be sent.
Fields§
§type_tl: StringType of the result, must be video
media: StringFile to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files » See https://core.telegram.org/bots/api#sending-files
caption: Option<String>Caption of the video to be sent, 0-200 characters
parse_mode: Option<String>Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption. See https://core.telegram.org/bots/api#markdown-style See https://core.telegram.org/bots/api#html-style See https://core.telegram.org/bots/api#formatting-options
width: Option<i64>Video width
height: Option<i64>Video height
duration: Option<i64>Video duration
supports_streaming: Option<bool>Pass True, if the uploaded video is suitable for streaming
Trait Implementations§
Source§impl Clone for InputMediaVideo
impl Clone for InputMediaVideo
Source§fn clone(&self) -> InputMediaVideo
fn clone(&self) -> InputMediaVideo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more