messages.ChatsSlice#

class pyrogram.raw.types.messages.ChatsSlice#

Partial list of chats, more would have to be fetched with pagination.

Constructor of Chats.

Details:
  • Layer: 158

  • ID: 9CD81144

Parameters:
  • count (int 32-bit) – Total number of results that were found server-side (not all are included in chats).

  • chats (List of Chat) – Chats.

Functions:

This object can be returned by 7 functions.

messages.GetChats

Returns chat basic info on their IDs.

messages.GetCommonChats

Get chats in common with a user.

messages.GetAllChats

Telegram API function.

channels.GetChannels

Get info about channels/supergroups.

channels.GetAdminedPublicChannels

Get channels/supergroups/geogroups we're admin in.

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.