Enum rtdlib::types::ChatAction [−][src]
pub enum ChatAction {
Show 13 variants
Cancel(ChatActionCancel),
ChoosingContact(ChatActionChoosingContact),
ChoosingLocation(ChatActionChoosingLocation),
RecordingVideo(ChatActionRecordingVideo),
RecordingVideoNote(ChatActionRecordingVideoNote),
RecordingVoiceNote(ChatActionRecordingVoiceNote),
StartPlayingGame(ChatActionStartPlayingGame),
Typing(ChatActionTyping),
UploadingDocument(ChatActionUploadingDocument),
UploadingPhoto(ChatActionUploadingPhoto),
UploadingVideo(ChatActionUploadingVideo),
UploadingVideoNote(ChatActionUploadingVideoNote),
UploadingVoiceNote(ChatActionUploadingVoiceNote),
// some variants omitted
}
Expand description
Describes the different types of activity in a chat
Variants
The user has cancelled the previous action
Tuple Fields of Cancel
The user is picking a contact to send
Tuple Fields of ChoosingContact
The user is picking a location or venue to send
Tuple Fields of ChoosingLocation
The user is recording a video
Tuple Fields of RecordingVideo
The user is recording a video note
Tuple Fields of RecordingVideoNote
The user is recording a voice note
Tuple Fields of RecordingVoiceNote
The user has started to play a game
Tuple Fields of StartPlayingGame
The user is typing a message
Tuple Fields of Typing
The user is uploading a document
Tuple Fields of UploadingDocument
The user is uploading a photo
Tuple Fields of UploadingPhoto
The user is uploading a video
Tuple Fields of UploadingVideo
The user is uploading a video note
Tuple Fields of UploadingVideoNote
The user is uploading a voice note
Tuple Fields of UploadingVoiceNote
Implementations
pub fn on_recording_video_note<F: FnOnce(&ChatActionRecordingVideoNote)>(
&self,
fnc: F
) -> &Self
pub fn on_recording_voice_note<F: FnOnce(&ChatActionRecordingVoiceNote)>(
&self,
fnc: F
) -> &Self
pub fn on_uploading_video_note<F: FnOnce(&ChatActionUploadingVideoNote)>(
&self,
fnc: F
) -> &Self
pub fn on_uploading_voice_note<F: FnOnce(&ChatActionUploadingVoiceNote)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChatAction
impl Send for ChatAction
impl Sync for ChatAction
impl Unpin for ChatAction
impl UnwindSafe for ChatAction
Blanket Implementations
Mutably borrows from an owned value. Read more