Function leave_chat

Source
pub async fn leave_chat(chat_id: i64, client_id: i32) -> Result<(), Error>
Expand description

Removes the current user from chat members. Private and secret chats can’t be left using this method

§Arguments

  • chat_id - Chat identifier
  • client_id - The client id to send the request to