pub enum MediaKind {
Photo,
Animation,
Video,
Audio,
Voice,
Document,
Sticker,
}Expand description
Which sendX endpoint a media payload goes through — the endpoint name
and the form field Telegram expects the file under.
Variants§
Photo
sendPhoto — images rendered inline.
Animation
sendAnimation — GIFs and looping video without sound.
Video
sendVideo — video files.
Audio
sendAudio — music/podcast files with player UI.
Voice
sendVoice — voice-note bubble (.ogg OPUS).
Document
sendDocument — everything else, as a file attachment.
Sticker
sendSticker — native sticker formats or a sticker file_id.
Trait Implementations§
impl Copy for MediaKind
impl Eq for MediaKind
impl StructuralPartialEq for MediaKind
Auto Trait Implementations§
impl Freeze for MediaKind
impl RefUnwindSafe for MediaKind
impl Send for MediaKind
impl Sync for MediaKind
impl Unpin for MediaKind
impl UnsafeUnpin for MediaKind
impl UnwindSafe for MediaKind
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