Object contains list of chats with auxiliary data.
messages.chats#8150cbd8 chats:Vector<Chat> users:Vector<User> = messages.Chats;
---functions---
messages.getChats#3c6aa187 id:Vector<int> = messages.Chats;
Constructor | Description |
---|---|
messages.chats | List of chats with auxiliary data. |
messages.chatsSlice | Partial list of chats, more would have to be fetched with pagination |
Method | Description |
---|---|
messages.getChats | Returns chat basic info on their IDs. |
channels.getChannels | Get info about channels/supergroups |
channels.getAdminedPublicChannels | Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the limit for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups. |
messages.getCommonChats | Get chats in common with a user |
channels.getLeftChannels | Get a list of channels/supergroups we left, requires a takeout session, see here ยป for more info. |
channels.getGroupsForDiscussion | Get all groups that can be used as discussion groups. Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group. To set a returned supergroup as a discussion group, access to its old messages must be enabled using channels.togglePreHistoryHidden, first. |
stories.getChatsToSend | Obtain a list of channels where the user can post stories |
channels.getChannelRecommendations | Obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases. |