Chat

class pyrogram.raw.types.Chat

Info about a group.

Constructor of Chat.

Details:
  • Layer: 227

  • ID: 41CBF256

Parameters:
  • id (int 64-bit) – ID of the group, see here » for more info and the available ID range.

  • title (str) – Title

  • photo (ChatPhoto) – Chat photo

  • participants_count (int 32-bit) – Participant count

  • date (int 32-bit) – Date of creation of the group

  • version (int 32-bit) – Used in basic groups to reorder updates and make sure that all of them were received.

  • creator (bool, optional) – Whether the current user is the creator of the group

  • left (bool, optional) – Whether the current user has left the group

  • deactivated (bool, optional) – Whether the group was migrated

  • call_active (bool, optional) – Whether a group call is currently active

  • call_not_empty (bool, optional) – Whether there’s anyone in the group call

  • noforwards (bool, optional) – Whether this group is protected, thus does not allow forwarding messages from it

  • migrated_to (InputChannel, optional) – Means this chat was upgraded to a supergroup

  • admin_rights (ChatAdminRights, optional) – Admin rights of the user in the group

  • default_banned_rights (ChatBannedRights, optional) – Default banned rights of all users in the group

TL Schema

chat#41cbf256
flags:#
creator:flags.0?true
left:flags.2?true
deactivated:flags.5?true
call_active:flags.23?true
call_not_empty:flags.24?true
noforwards:flags.25?true
id:long
title:string
photo:ChatPhoto
participants_count:int
date:int
version:int
migrated_to:flags.6?InputChannel
admin_rights:flags.14?ChatAdminRights
default_banned_rights:flags.18?ChatBannedRights

= Chat

Parameter Tree

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
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── 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)
├── 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

Example

Chat(
    id=0,
    title="text",
    photo=ChatPhotoEmpty(),
    participants_count=0,
    date=0,
    version=0,
)