pub struct InputMediaLivePhoto {
pub media: String,
pub photo: String,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub show_caption_above_media: Option<bool>,
pub has_spoiler: Option<bool>,
}Expand description
A live photo to be sent as part of a media group or to replace an existing media message.
Sending live photos by URL is currently unsupported — use file_id or attach://<n>.
Fields§
§media: StringVideo of the live photo: file_id or "attach://<n>".
photo: StringThe static photo: 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.
has_spoiler: Option<bool>true if the live photo needs a spoiler animation.
Trait Implementations§
Source§impl Clone for InputMediaLivePhoto
impl Clone for InputMediaLivePhoto
Source§fn clone(&self) -> InputMediaLivePhoto
fn clone(&self) -> InputMediaLivePhoto
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 InputMediaLivePhoto
impl Debug for InputMediaLivePhoto
Source§impl<'de> Deserialize<'de> for InputMediaLivePhoto
impl<'de> Deserialize<'de> for InputMediaLivePhoto
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 InputMediaLivePhoto
impl RefUnwindSafe for InputMediaLivePhoto
impl Send for InputMediaLivePhoto
impl Sync for InputMediaLivePhoto
impl Unpin for InputMediaLivePhoto
impl UnsafeUnpin for InputMediaLivePhoto
impl UnwindSafe for InputMediaLivePhoto
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