pub struct InputMediaAnimation {
pub media: String,
pub thumbnail: Option<String>,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub show_caption_above_media: Option<bool>,
pub width: Option<u32>,
pub height: Option<u32>,
pub duration: Option<u32>,
pub has_spoiler: Option<bool>,
}Expand description
An animation (GIF or silent H.264) to include in a media group.
Fields§
§media: StringFile to send: file_id, HTTP URL, or "attach://<n>".
thumbnail: Option<String>Thumbnail: file_id or "attach://<n>".
caption: Option<String>Caption (0–1024 characters after entities parsing).
parse_mode: Option<ParseMode>Parse mode for the caption.
caption_entities: Option<Vec<MessageEntity>>Special entities in the caption.
show_caption_above_media: Option<bool>true if the caption must be shown above the media.
width: Option<u32>Animation width in pixels.
height: Option<u32>Animation height in pixels.
duration: Option<u32>Animation duration in seconds.
has_spoiler: Option<bool>true if the animation needs a spoiler animation.
Trait Implementations§
Source§impl Clone for InputMediaAnimation
impl Clone for InputMediaAnimation
Source§fn clone(&self) -> InputMediaAnimation
fn clone(&self) -> InputMediaAnimation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputMediaAnimation
impl Debug for InputMediaAnimation
Source§impl<'de> Deserialize<'de> for InputMediaAnimation
impl<'de> Deserialize<'de> for InputMediaAnimation
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
Auto Trait Implementations§
impl Freeze for InputMediaAnimation
impl RefUnwindSafe for InputMediaAnimation
impl Send for InputMediaAnimation
impl Sync for InputMediaAnimation
impl Unpin for InputMediaAnimation
impl UnsafeUnpin for InputMediaAnimation
impl UnwindSafe for InputMediaAnimation
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