GlobalPrivacySettings

class pyrogram.raw.types.GlobalPrivacySettings

Global privacy settings

Constructor of GlobalPrivacySettings.

Details:
  • Layer: 187

  • ID: 734C4CCB

Parameters:
  • archive_and_mute_new_noncontact_peers (bool, optional) – Whether to archive and mute new chats from non-contacts

  • keep_archived_unmuted (bool, optional) – Whether unmuted chats will be kept in the Archive chat list when they get a new message.

  • keep_archived_folders (bool, optional) – Whether unmuted chats that are always included or pinned in a folder, will be kept in the Archive chat list when they get a new message. Ignored if keep_archived_unmuted is set.

  • hide_read_marks (bool, optional)

  • new_noncontact_peers_require_premium (bool, optional)

Functions:

This object can be returned by 2 functions.

account.GetGlobalPrivacySettings

Get global privacy settings

account.SetGlobalPrivacySettings

Set global privacy settings