Function join_chat

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

Adds the current user as a new member to a chat. Private and secret chats can’t be joined using this method. May return an error with a message “INVITE_REQUEST_SENT” if only a join request was created

§Arguments

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