Chat#

class pyrogram.raw.types.Chat#

Info about a group.

Constructor of Chat.

Details:
  • Layer: 158

  • ID: 41CBF256

Parameters:
  • id (int 64-bit) – ID of the group.

  • 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.