Chat
- class pyrogram.raw.types.Chat
Info about a group.
Constructor of
Chat.- Details:
Layer:
223ID:
41CBF256
- Parameters:
id (
int64-bit) – ID of the group, see here » for more info and the available ID range.title (
str) – Titlephoto (
ChatPhoto) – Chat photoparticipants_count (
int32-bit) – Participant countdate (
int32-bit) – Date of creation of the groupversion (
int32-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 groupleft (
bool, optional) – Whether the current user has left the groupdeactivated (
bool, optional) – Whether the group was migratedcall_active (
bool, optional) – Whether a group call is currently activecall_not_empty (
bool, optional) – Whether there’s anyone in the group callnoforwards (
bool, optional) – Whether this group is protected, thus does not allow forwarding messages from itmigrated_to (
InputChannel, optional) – Means this chat was upgraded to a supergroupadmin_rights (
ChatAdminRights, optional) – Admin rights of the user in the groupdefault_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
true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)longstringChatPhotoChatPhotoEmptyChatPhototrue (optional)longbytes (optional)intintintintInputChannel (optional)InputChannelEmptyInputChannellonglongInputChannelFromMessageInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintlongChatAdminRights (optional)ChatAdminRightstrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)ChatBannedRights (optional)ChatBannedRightstrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)intExample
Chat(
id=0,
title="text",
photo=ChatPhotoEmpty(),
participants_count=0,
date=0,
version=0,
)