messages.Chats

Object contains list of chats with auxiliary data.

messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats;
messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats;

---functions---

messages.getChats#3c6aa187 id:Vector<int> = messages.Chats;
messages.getCommonChats#d0a48c4 user_id:InputUser max_id:int limit:int = messages.Chats;
messages.getAllChats#eba80ff0 except_ids:Vector<int> = messages.Chats;

channels.getChannels#a7f6bbb id:Vector<InputChannel> = messages.Chats;
channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true = messages.Chats;
channels.getLeftChannels#8341ecc0 offset:int = messages.Chats;
channels.getGroupsForDiscussion#f5dad378 = messages.Chats;

Constructors

Constructor Description
messages.chats List of chats with auxiliary data.
messages.chatsSlice Partial list of chats, more would have to be fetched with pagination

Methods

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
messages.getAllChats Get all chats, channels and supergroups
channels.getLeftChannels Get a list of channels/supergroups we left
channels.getGroupsForDiscussion Get all groups that can be used as discussion groups