Chat#
- class pyrogram.raw.types.Chat#
Info about a group. When updating the local peer database, all fields from the newly received constructor take priority over the old constructor cached locally (including by removing fields that aren’t set in the new constructor). See here for an implementation of the logic to use when updating the local user peer database.
Constructor of
Chat.- Details:
Layer:
225ID:
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