pub enum InputMedia {
Photo(InputMediaPhoto),
Video(InputMediaVideo),
Animation(InputMediaAnimation),
Audio(InputMediaAudio),
Document(InputMediaDocument),
LivePhoto(InputMediaLivePhoto),
VoiceNote(InputMediaVoiceNote),
}Expand description
The media content of a message to be sent or edited.
Serialise with serde_json::to_value(&media) to pass to sendMediaGroup
or editMessageMedia until the API methods are updated to accept this type
directly.
Variants§
Photo(InputMediaPhoto)
A photo.
Video(InputMediaVideo)
A video.
Animation(InputMediaAnimation)
An animation (GIF or silent H.264).
Audio(InputMediaAudio)
An audio file treated as music.
Document(InputMediaDocument)
A general document.
LivePhoto(InputMediaLivePhoto)
A live photo.
VoiceNote(InputMediaVoiceNote)
A voice message.
Trait Implementations§
Source§impl Clone for InputMedia
impl Clone for InputMedia
Source§fn clone(&self) -> InputMedia
fn clone(&self) -> InputMedia
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 InputMedia
impl Debug for InputMedia
Source§impl<'de> Deserialize<'de> for InputMedia
impl<'de> Deserialize<'de> for InputMedia
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 InputMedia
impl RefUnwindSafe for InputMedia
impl Send for InputMedia
impl Sync for InputMedia
impl Unpin for InputMedia
impl UnsafeUnpin for InputMedia
impl UnwindSafe for InputMedia
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