Chat

class pyrogram.raw.types.Chat

Info about a group.

Constructor of Chat.

Details:
  • Layer: 223

  • 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
├── 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
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── 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)
├── 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

Example

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