Function add_chat_to_list

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

Adds a chat to a chat list. A chat can’t be simultaneously in Main and Archive chat lists, so it is automatically removed from another one if needed

§Arguments

  • chat_id - Chat identifier
  • chat_list - The chat list. Use getChatListsToAddChat to get suitable chat lists
  • client_id - The client id to send the request to