Struct tg_bot_models::SendChatAction [−][src]
pub struct SendChatAction { pub chat_id: PolymorphChatId, pub action: String, }
Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns True on success.
Fields
chat_id: PolymorphChatId
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
action: String
Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_audio or upload_audio for audio files, upload_document for general files, find_location for location data, record_video_note or upload_video_note for video notes.
Trait Implementations
impl Debug for SendChatAction
[src]
impl Debug for SendChatAction
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for SendChatAction
[src]
impl Clone for SendChatAction
fn clone(&self) -> SendChatAction
[src]
fn clone(&self) -> SendChatAction
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for SendChatAction
[src]
impl PartialEq for SendChatAction
fn eq(&self, other: &SendChatAction) -> bool
[src]
fn eq(&self, other: &SendChatAction) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SendChatAction) -> bool
[src]
fn ne(&self, other: &SendChatAction) -> bool
This method tests for !=
.
impl PartialOrd for SendChatAction
[src]
impl PartialOrd for SendChatAction
fn partial_cmp(&self, other: &SendChatAction) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &SendChatAction) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &SendChatAction) -> bool
[src]
fn lt(&self, other: &SendChatAction) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &SendChatAction) -> bool
[src]
fn le(&self, other: &SendChatAction) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &SendChatAction) -> bool
[src]
fn gt(&self, other: &SendChatAction) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &SendChatAction) -> bool
[src]
fn ge(&self, other: &SendChatAction) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for SendChatAction
impl Send for SendChatAction
impl Sync for SendChatAction
impl Sync for SendChatAction