messages.Chats

class pyrogram.raw.base.messages.Chats

Object contains list of chats with auxiliary data.

Constructors:

This base type has 2 constructors available.

messages.Chats

List of chats with auxiliary data.

messages.ChatsSlice

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

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.chats#64ff9fd5
chats:Vector<Chat>

= messages.Chats

Parameter Tree

Chats
└── chats → Vector < Chat >
├── ChatEmpty
│ └── id → long
├── Chat
│ ├── creator → true (optional)
│ ├── left → true (optional)
│ ├── deactivated → true (optional)
│ ├── call_active → true (optional)
│ ├── call_not_empty → true (optional)
│ ├── noforwards → true (optional)
│ ├── id → long
│ ├── title → string
│ ├── photo → ChatPhoto
│ │ ├── ChatPhotoEmpty
│ │ └── ChatPhoto
│ │ ├── has_video → true (optional)
│ │ ├── photo_id → long
│ │ ├── stripped_thumb → bytes (optional)
│ │ └── dc_id → int
│ ├── participants_count → int
│ ├── date → int
│ ├── version → int
│ ├── migrated_to → InputChannel (optional)
│ │ ├── InputChannelEmpty
│ │ ├── InputChannel
│ │ └── InputChannelFromMessage
│ ├── admin_rights → ChatAdminRights (optional)
│ │ └── ChatAdminRights
│ │ ├── change_info → true (optional)
│ │ ├── post_messages → true (optional)
│ │ ├── edit_messages → true (optional)
│ │ ├── delete_messages → true (optional)
│ │ ├── ban_users → true (optional)
│ │ ├── invite_users → true (optional)
│ │ ├── pin_messages → true (optional)
│ │ ├── add_admins → true (optional)
│ │ ├── anonymous → true (optional)
│ │ ├── manage_call → true (optional)
│ │ ├── other → true (optional)
│ │ ├── manage_topics → true (optional)
│ │ ├── post_stories → true (optional)
│ │ ├── edit_stories → true (optional)
│ │ ├── delete_stories → true (optional)
│ │ ├── manage_direct_messages → true (optional)
│ │ └── manage_ranks → true (optional)
│ └── default_banned_rights → ChatBannedRights (optional)
│ └── ChatBannedRights
│ ├── view_messages → true (optional)
│ ├── send_messages → true (optional)
│ ├── send_media → true (optional)
│ ├── send_stickers → true (optional)
│ ├── send_gifs → true (optional)
│ ├── send_games → true (optional)
│ ├── send_inline → true (optional)
│ ├── embed_links → true (optional)
│ ├── send_polls → true (optional)
│ ├── change_info → true (optional)
│ ├── invite_users → true (optional)
│ ├── pin_messages → true (optional)
│ ├── manage_topics → true (optional)
│ ├── send_photos → true (optional)
│ ├── send_videos → true (optional)
│ ├── send_roundvideos → true (optional)
│ ├── send_audios → true (optional)
│ ├── send_voices → true (optional)
│ ├── send_docs → true (optional)
│ ├── send_plain → true (optional)
│ ├── edit_rank → true (optional)
│ ├── send_reactions → true (optional)
│ └── until_date → int
├── ChatForbidden
│ ├── id → long
│ └── title → string
├── Channel
│ ├── creator → true (optional)
│ ├── left → true (optional)
│ ├── broadcast → true (optional)
│ ├── verified → true (optional)
│ ├── megagroup → true (optional)
│ ├── restricted → true (optional)
│ ├── signatures → true (optional)
│ ├── min → true (optional)
│ ├── scam → true (optional)
│ ├── has_link → true (optional)
│ ├── has_geo → true (optional)
│ ├── slowmode_enabled → true (optional)
│ ├── call_active → true (optional)
│ ├── call_not_empty → true (optional)
│ ├── fake → true (optional)
│ ├── gigagroup → true (optional)
│ ├── noforwards → true (optional)
│ ├── join_to_send → true (optional)
│ ├── join_request → true (optional)
│ ├── forum → true (optional)
│ ├── stories_hidden → true (optional)
│ ├── stories_hidden_min → true (optional)
│ ├── stories_unavailable → true (optional)
│ ├── signature_profiles → true (optional)
│ ├── autotranslation → true (optional)
│ ├── broadcast_messages_allowed → true (optional)
│ ├── monoforum → true (optional)
│ ├── forum_tabs → true (optional)
│ ├── id → long
│ ├── access_hash → long (optional)
│ ├── title → string
│ ├── username → string (optional)
│ ├── photo → ChatPhoto
│ │ ├── ChatPhotoEmpty
│ │ └── ChatPhoto
│ │ ├── has_video → true (optional)
│ │ ├── photo_id → long
│ │ ├── stripped_thumb → bytes (optional)
│ │ └── dc_id → int
│ ├── date → int
│ ├── restriction_reason → Vector < RestrictionReason > (optional)
│ │ └── RestrictionReason
│ │ ├── platform → string
│ │ ├── reason → string
│ │ └── text → string
│ ├── admin_rights → ChatAdminRights (optional)
│ │ └── ChatAdminRights
│ │ ├── change_info → true (optional)
│ │ ├── post_messages → true (optional)
│ │ ├── edit_messages → true (optional)
│ │ ├── delete_messages → true (optional)
│ │ ├── ban_users → true (optional)
│ │ ├── invite_users → true (optional)
│ │ ├── pin_messages → true (optional)
│ │ ├── add_admins → true (optional)
│ │ ├── anonymous → true (optional)
│ │ ├── manage_call → true (optional)
│ │ ├── other → true (optional)
│ │ ├── manage_topics → true (optional)
│ │ ├── post_stories → true (optional)
│ │ ├── edit_stories → true (optional)
│ │ ├── delete_stories → true (optional)
│ │ ├── manage_direct_messages → true (optional)
│ │ └── manage_ranks → true (optional)
│ ├── banned_rights → ChatBannedRights (optional)
│ │ └── ChatBannedRights
│ │ ├── view_messages → true (optional)
│ │ ├── send_messages → true (optional)
│ │ ├── send_media → true (optional)
│ │ ├── send_stickers → true (optional)
│ │ ├── send_gifs → true (optional)
│ │ ├── send_games → true (optional)
│ │ ├── send_inline → true (optional)
│ │ ├── embed_links → true (optional)
│ │ ├── send_polls → true (optional)
│ │ ├── change_info → true (optional)
│ │ ├── invite_users → true (optional)
│ │ ├── pin_messages → true (optional)
│ │ ├── manage_topics → true (optional)
│ │ ├── send_photos → true (optional)
│ │ ├── send_videos → true (optional)
│ │ ├── send_roundvideos → true (optional)
│ │ ├── send_audios → true (optional)
│ │ ├── send_voices → true (optional)
│ │ ├── send_docs → true (optional)
│ │ ├── send_plain → true (optional)
│ │ ├── edit_rank → true (optional)
│ │ ├── send_reactions → true (optional)
│ │ └── until_date → int
│ ├── default_banned_rights → ChatBannedRights (optional)
│ │ └── ChatBannedRights
│ │ ├── view_messages → true (optional)
│ │ ├── send_messages → true (optional)
│ │ ├── send_media → true (optional)
│ │ ├── send_stickers → true (optional)
│ │ ├── send_gifs → true (optional)
│ │ ├── send_games → true (optional)
│ │ ├── send_inline → true (optional)
│ │ ├── embed_links → true (optional)
│ │ ├── send_polls → true (optional)
│ │ ├── change_info → true (optional)
│ │ ├── invite_users → true (optional)
│ │ ├── pin_messages → true (optional)
│ │ ├── manage_topics → true (optional)
│ │ ├── send_photos → true (optional)
│ │ ├── send_videos → true (optional)
│ │ ├── send_roundvideos → true (optional)
│ │ ├── send_audios → true (optional)
│ │ ├── send_voices → true (optional)
│ │ ├── send_docs → true (optional)
│ │ ├── send_plain → true (optional)
│ │ ├── edit_rank → true (optional)
│ │ ├── send_reactions → true (optional)
│ │ └── until_date → int
│ ├── participants_count → int (optional)
│ ├── usernames → Vector < Username > (optional)
│ │ └── Username
│ │ ├── editable → true (optional)
│ │ ├── active → true (optional)
│ │ └── username → string
│ ├── stories_max_id → RecentStory (optional)
│ │ └── RecentStory
│ │ ├── live → true (optional)
│ │ └── max_id → int (optional)
│ ├── color → PeerColor (optional)
│ │ ├── PeerColor
│ │ │ ├── color → int (optional)
│ │ │ └── background_emoji_id → long (optional)
│ │ ├── PeerColorCollectible
│ │ │ ├── collectible_id → long
│ │ │ ├── gift_emoji_id → long
│ │ │ ├── background_emoji_id → long
│ │ │ ├── accent_color → int
│ │ │ ├── colors → Vector < int >
│ │ │ ├── dark_accent_color → int (optional)
│ │ │ └── dark_colors → Vector < int > (optional)
│ │ └── InputPeerColorCollectible
│ │ └── collectible_id → long
│ ├── profile_color → PeerColor (optional)
│ │ ├── PeerColor
│ │ │ ├── color → int (optional)
│ │ │ └── background_emoji_id → long (optional)
│ │ ├── PeerColorCollectible
│ │ │ ├── collectible_id → long
│ │ │ ├── gift_emoji_id → long
│ │ │ ├── background_emoji_id → long
│ │ │ ├── accent_color → int
│ │ │ ├── colors → Vector < int >
│ │ │ ├── dark_accent_color → int (optional)
│ │ │ └── dark_colors → Vector < int > (optional)
│ │ └── InputPeerColorCollectible
│ │ └── collectible_id → long
│ ├── emoji_status → EmojiStatus (optional)
│ │ ├── EmojiStatusEmpty
│ │ ├── EmojiStatus
│ │ │ ├── document_id → long
│ │ │ └── until → int (optional)
│ │ ├── EmojiStatusCollectible
│ │ │ ├── collectible_id → long
│ │ │ ├── document_id → long
│ │ │ ├── title → string
│ │ │ ├── slug → string
│ │ │ ├── pattern_document_id → long
│ │ │ ├── center_color → int
│ │ │ ├── edge_color → int
│ │ │ ├── pattern_color → int
│ │ │ ├── text_color → int
│ │ │ └── until → int (optional)
│ │ └── InputEmojiStatusCollectible
│ │ ├── collectible_id → long
│ │ └── until → int (optional)
│ ├── level → int (optional)
│ ├── subscription_until_date → int (optional)
│ ├── bot_verification_icon → long (optional)
│ ├── send_paid_messages_stars → long (optional)
│ └── linked_monoforum_id → long (optional)
├── broadcast → true (optional)
├── megagroup → true (optional)
├── monoforum → true (optional)
├── id → long
├── access_hash → long
├── title → string
└── until_date → int (optional)

Example

Chats(
    chats=[
            ChatEmpty(id=0)
        ],
)