Function send_chat_action

Source
pub async fn send_chat_action(
    chat_id: i64,
    message_thread_id: i64,
    business_connection_id: String,
    action: Option<ChatAction>,
    client_id: i32,
) -> Result<(), Error>
Expand description

Sends a notification about user activity in a chat

ยงArguments

  • chat_id - Chat identifier
  • message_thread_id - If not 0, the message thread identifier in which the action was performed
  • business_connection_id - Unique identifier of business connection on behalf of which to send the request; for bots only
  • action - The action description; pass null to cancel the currently active action
  • client_id - The client id to send the request to