add_chat_to_list


Description:

public async Ok add_chat_to_list (int64 chat_id, ChatList chat_list) throws TDLibError

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

Parameters:

chat_id

Chat identifier

chat_list

The chat list. Use Client.get_chat_lists_to_add_chat to get suitable chat lists