api.addChatToList()
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
AddChatToListParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
chatId | number | Chat identifier |
chatList | The chat list. Use getChatListsToAddChat to get suitable chat lists |