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: 223

  • 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 8 functions.

messages.GetChats

Returns chat basic info on their IDs.

messages.GetCommonChats

Get chats in common with a user

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.

channels.GetChannelRecommendations

Obtain a list of similarly themed public channels, selected based on similarities in their subscriber bases.

stories.GetChatsToSend

Obtain a list of channels where the user can post stories

TL Schema

messages.chatsSlice#9cd81144
count:int
chats:Vector<Chat>

= messages.Chats

Parameter Tree

ChatsSlice
├── countint
└── chatsVector < Chat >
├── ChatEmpty
│ └── idlong
├── Chat
│ ├── creatortrue (optional)
│ ├── lefttrue (optional)
│ ├── deactivatedtrue (optional)
│ ├── call_activetrue (optional)
│ ├── call_not_emptytrue (optional)
│ ├── noforwardstrue (optional)
│ ├── idlong
│ ├── titlestring
│ ├── photoChatPhoto
│ │ ├── ChatPhotoEmpty
│ │ └── ChatPhoto
│ │ ├── has_videotrue (optional)
│ │ ├── photo_idlong
│ │ ├── stripped_thumbbytes (optional)
│ │ └── dc_idint
│ ├── participants_countint
│ ├── dateint
│ ├── versionint
│ ├── migrated_toInputChannel (optional)
│ │ ├── InputChannelEmpty
│ │ ├── InputChannel
│ │ └── InputChannelFromMessage
│ ├── admin_rightsChatAdminRights (optional)
│ │ └── ChatAdminRights
│ │ ├── change_infotrue (optional)
│ │ ├── post_messagestrue (optional)
│ │ ├── edit_messagestrue (optional)
│ │ ├── delete_messagestrue (optional)
│ │ ├── ban_userstrue (optional)
│ │ ├── invite_userstrue (optional)
│ │ ├── pin_messagestrue (optional)
│ │ ├── add_adminstrue (optional)
│ │ ├── anonymoustrue (optional)
│ │ ├── manage_calltrue (optional)
│ │ ├── othertrue (optional)
│ │ ├── manage_topicstrue (optional)
│ │ ├── post_storiestrue (optional)
│ │ ├── edit_storiestrue (optional)
│ │ ├── delete_storiestrue (optional)
│ │ ├── manage_direct_messagestrue (optional)
│ │ └── manage_rankstrue (optional)
│ └── default_banned_rightsChatBannedRights (optional)
│ └── ChatBannedRights
│ ├── view_messagestrue (optional)
│ ├── send_messagestrue (optional)
│ ├── send_mediatrue (optional)
│ ├── send_stickerstrue (optional)
│ ├── send_gifstrue (optional)
│ ├── send_gamestrue (optional)
│ ├── send_inlinetrue (optional)
│ ├── embed_linkstrue (optional)
│ ├── send_pollstrue (optional)
│ ├── change_infotrue (optional)
│ ├── invite_userstrue (optional)
│ ├── pin_messagestrue (optional)
│ ├── manage_topicstrue (optional)
│ ├── send_photostrue (optional)
│ ├── send_videostrue (optional)
│ ├── send_roundvideostrue (optional)
│ ├── send_audiostrue (optional)
│ ├── send_voicestrue (optional)
│ ├── send_docstrue (optional)
│ ├── send_plaintrue (optional)
│ ├── edit_ranktrue (optional)
│ └── until_dateint
├── ChatForbidden
│ ├── idlong
│ └── titlestring
├── Channel
│ ├── creatortrue (optional)
│ ├── lefttrue (optional)
│ ├── broadcasttrue (optional)
│ ├── verifiedtrue (optional)
│ ├── megagrouptrue (optional)
│ ├── restrictedtrue (optional)
│ ├── signaturestrue (optional)
│ ├── mintrue (optional)
│ ├── scamtrue (optional)
│ ├── has_linktrue (optional)
│ ├── has_geotrue (optional)
│ ├── slowmode_enabledtrue (optional)
│ ├── call_activetrue (optional)
│ ├── call_not_emptytrue (optional)
│ ├── faketrue (optional)
│ ├── gigagrouptrue (optional)
│ ├── noforwardstrue (optional)
│ ├── join_to_sendtrue (optional)
│ ├── join_requesttrue (optional)
│ ├── forumtrue (optional)
│ ├── stories_hiddentrue (optional)
│ ├── stories_hidden_mintrue (optional)
│ ├── stories_unavailabletrue (optional)
│ ├── signature_profilestrue (optional)
│ ├── autotranslationtrue (optional)
│ ├── broadcast_messages_allowedtrue (optional)
│ ├── monoforumtrue (optional)
│ ├── forum_tabstrue (optional)
│ ├── idlong
│ ├── access_hashlong (optional)
│ ├── titlestring
│ ├── usernamestring (optional)
│ ├── photoChatPhoto
│ │ ├── ChatPhotoEmpty
│ │ └── ChatPhoto
│ │ ├── has_videotrue (optional)
│ │ ├── photo_idlong
│ │ ├── stripped_thumbbytes (optional)
│ │ └── dc_idint
│ ├── dateint
│ ├── restriction_reasonVector < RestrictionReason > (optional)
│ │ └── RestrictionReason
│ │ ├── platformstring
│ │ ├── reasonstring
│ │ └── textstring
│ ├── admin_rightsChatAdminRights (optional)
│ │ └── ChatAdminRights
│ │ ├── change_infotrue (optional)
│ │ ├── post_messagestrue (optional)
│ │ ├── edit_messagestrue (optional)
│ │ ├── delete_messagestrue (optional)
│ │ ├── ban_userstrue (optional)
│ │ ├── invite_userstrue (optional)
│ │ ├── pin_messagestrue (optional)
│ │ ├── add_adminstrue (optional)
│ │ ├── anonymoustrue (optional)
│ │ ├── manage_calltrue (optional)
│ │ ├── othertrue (optional)
│ │ ├── manage_topicstrue (optional)
│ │ ├── post_storiestrue (optional)
│ │ ├── edit_storiestrue (optional)
│ │ ├── delete_storiestrue (optional)
│ │ ├── manage_direct_messagestrue (optional)
│ │ └── manage_rankstrue (optional)
│ ├── banned_rightsChatBannedRights (optional)
│ │ └── ChatBannedRights
│ │ ├── view_messagestrue (optional)
│ │ ├── send_messagestrue (optional)
│ │ ├── send_mediatrue (optional)
│ │ ├── send_stickerstrue (optional)
│ │ ├── send_gifstrue (optional)
│ │ ├── send_gamestrue (optional)
│ │ ├── send_inlinetrue (optional)
│ │ ├── embed_linkstrue (optional)
│ │ ├── send_pollstrue (optional)
│ │ ├── change_infotrue (optional)
│ │ ├── invite_userstrue (optional)
│ │ ├── pin_messagestrue (optional)
│ │ ├── manage_topicstrue (optional)
│ │ ├── send_photostrue (optional)
│ │ ├── send_videostrue (optional)
│ │ ├── send_roundvideostrue (optional)
│ │ ├── send_audiostrue (optional)
│ │ ├── send_voicestrue (optional)
│ │ ├── send_docstrue (optional)
│ │ ├── send_plaintrue (optional)
│ │ ├── edit_ranktrue (optional)
│ │ └── until_dateint
│ ├── default_banned_rightsChatBannedRights (optional)
│ │ └── ChatBannedRights
│ │ ├── view_messagestrue (optional)
│ │ ├── send_messagestrue (optional)
│ │ ├── send_mediatrue (optional)
│ │ ├── send_stickerstrue (optional)
│ │ ├── send_gifstrue (optional)
│ │ ├── send_gamestrue (optional)
│ │ ├── send_inlinetrue (optional)
│ │ ├── embed_linkstrue (optional)
│ │ ├── send_pollstrue (optional)
│ │ ├── change_infotrue (optional)
│ │ ├── invite_userstrue (optional)
│ │ ├── pin_messagestrue (optional)
│ │ ├── manage_topicstrue (optional)
│ │ ├── send_photostrue (optional)
│ │ ├── send_videostrue (optional)
│ │ ├── send_roundvideostrue (optional)
│ │ ├── send_audiostrue (optional)
│ │ ├── send_voicestrue (optional)
│ │ ├── send_docstrue (optional)
│ │ ├── send_plaintrue (optional)
│ │ ├── edit_ranktrue (optional)
│ │ └── until_dateint
│ ├── participants_countint (optional)
│ ├── usernamesVector < Username > (optional)
│ │ └── Username
│ │ ├── editabletrue (optional)
│ │ ├── activetrue (optional)
│ │ └── usernamestring
│ ├── stories_max_idRecentStory (optional)
│ │ └── RecentStory
│ │ ├── livetrue (optional)
│ │ └── max_idint (optional)
│ ├── colorPeerColor (optional)
│ │ ├── PeerColor
│ │ │ ├── colorint (optional)
│ │ │ └── background_emoji_idlong (optional)
│ │ ├── PeerColorCollectible
│ │ │ ├── collectible_idlong
│ │ │ ├── gift_emoji_idlong
│ │ │ ├── background_emoji_idlong
│ │ │ ├── accent_colorint
│ │ │ ├── colorsVector < int >
│ │ │ ├── dark_accent_colorint (optional)
│ │ │ └── dark_colorsVector < int > (optional)
│ │ └── InputPeerColorCollectible
│ │ └── collectible_idlong
│ ├── profile_colorPeerColor (optional)
│ │ ├── PeerColor
│ │ │ ├── colorint (optional)
│ │ │ └── background_emoji_idlong (optional)
│ │ ├── PeerColorCollectible
│ │ │ ├── collectible_idlong
│ │ │ ├── gift_emoji_idlong
│ │ │ ├── background_emoji_idlong
│ │ │ ├── accent_colorint
│ │ │ ├── colorsVector < int >
│ │ │ ├── dark_accent_colorint (optional)
│ │ │ └── dark_colorsVector < int > (optional)
│ │ └── InputPeerColorCollectible
│ │ └── collectible_idlong
│ ├── emoji_statusEmojiStatus (optional)
│ │ ├── EmojiStatusEmpty
│ │ ├── EmojiStatus
│ │ │ ├── document_idlong
│ │ │ └── untilint (optional)
│ │ ├── EmojiStatusCollectible
│ │ │ ├── collectible_idlong
│ │ │ ├── document_idlong
│ │ │ ├── titlestring
│ │ │ ├── slugstring
│ │ │ ├── pattern_document_idlong
│ │ │ ├── center_colorint
│ │ │ ├── edge_colorint
│ │ │ ├── pattern_colorint
│ │ │ ├── text_colorint
│ │ │ └── untilint (optional)
│ │ └── InputEmojiStatusCollectible
│ │ ├── collectible_idlong
│ │ └── untilint (optional)
│ ├── levelint (optional)
│ ├── subscription_until_dateint (optional)
│ ├── bot_verification_iconlong (optional)
│ ├── send_paid_messages_starslong (optional)
│ └── linked_monoforum_idlong (optional)
├── broadcasttrue (optional)
├── megagrouptrue (optional)
├── monoforumtrue (optional)
├── idlong
├── access_hashlong
├── titlestring
└── until_dateint (optional)

Example

ChatsSlice(
    count=0,
    chats=[
            ChatEmpty(id=0)
        ],
)