messages.Chats #

Object contains list of chats with auxiliary data.

Layer 223

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

---functions---

messages.getChats#49e9528f id:Vector<long> = messages.Chats;
messages.getCommonChats#e40ca104 user_id:InputUser max_id:long limit: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 for_personal:flags.2?true = messages.Chats;
channels.getLeftChannels#8341ecc0 offset:int = messages.Chats;
channels.getGroupsForDiscussion#f5dad378 = messages.Chats;
channels.getChannelRecommendations#25a71742 flags:# channel:flags.0?InputChannel = messages.Chats;

stories.getChatsToSend#a56a8b60 = messages.Chats;

Constructors #

ConstructorDescription
messages.chatsList of chats with auxiliary data.
messages.chatsSlicePartial list of chats, more would have to be fetched with pagination

Methods #

MethodDescription
messages.getChatsReturns chat basic info on their IDs.
messages.getCommonChatsGet chats in common with a user
channels.getChannelsGet info about channels/supergroups
channels.getAdminedPublicChannelsGet 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.
channels.getLeftChannelsGet a list of channels/supergroups we left, requires a takeout session, see here » for more info.
channels.getGroupsForDiscussionGet 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.
channels.getChannelRecommendationsObtain a list of similarly themed public channels, selected based on similarities in their subscriber bases.
stories.getChatsToSendObtain a list of channels where the user can post stories