#[non_exhaustive]
pub enum Action {
Typing,
UploadPhoto,
RecordVideo,
UploadVideo,
RecordVoice,
UploadVoice,
UploadDocument,
FindLocation,
RecordVideoNote,
UploadVideoNote,
}
Expand description
Represents possible chat actions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Typing
About to send a text message.
UploadPhoto
About to send a photo.
RecordVideo
About to send a generated video.
UploadVideo
About to send a video.
RecordVoice
About to send a generated voice message.
UploadVoice
About to send a voice message.
UploadDocument
About to send a document.
FindLocation
About to send a location.
RecordVideoNote
About to send a generated video note.
UploadVideoNote
About to send a video note.
Implementations§
source§impl Action
impl Action
sourcepub fn is_upload_photo(&self) -> bool
pub fn is_upload_photo(&self) -> bool
Returns true
if self
is of variant UploadPhoto
.
sourcepub fn is_record_video(&self) -> bool
pub fn is_record_video(&self) -> bool
Returns true
if self
is of variant RecordVideo
.
sourcepub fn is_upload_video(&self) -> bool
pub fn is_upload_video(&self) -> bool
Returns true
if self
is of variant UploadVideo
.
sourcepub fn is_record_voice(&self) -> bool
pub fn is_record_voice(&self) -> bool
Returns true
if self
is of variant RecordVoice
.
sourcepub fn is_upload_voice(&self) -> bool
pub fn is_upload_voice(&self) -> bool
Returns true
if self
is of variant UploadVoice
.
sourcepub fn is_upload_document(&self) -> bool
pub fn is_upload_document(&self) -> bool
Returns true
if self
is of variant UploadDocument
.
sourcepub fn is_find_location(&self) -> bool
pub fn is_find_location(&self) -> bool
Returns true
if self
is of variant FindLocation
.
sourcepub fn is_record_video_note(&self) -> bool
pub fn is_record_video_note(&self) -> bool
Returns true
if self
is of variant RecordVideoNote
.
sourcepub fn is_upload_video_note(&self) -> bool
pub fn is_upload_video_note(&self) -> bool
Returns true
if self
is of variant UploadVideoNote
.