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: 225

  • 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