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

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

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]

Formats the value using the given formatter. Read more

impl Clone for SendChatAction
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for SendChatAction
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for SendChatAction
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations