Link Search Menu Expand Document

Constructor: globalPrivacySettings

Back to constructors index

Global privacy settings

Attributes:

NameTypeRequiredDescription
archive_and_mute_new_noncontact_peersBoolOptionalWhether to archive and mute new chats from non-contacts
keep_archived_unmutedBoolOptionalWhether unmuted chats will be kept in the Archive chat list when they get a new message.
keep_archived_foldersBoolOptionalWhether 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_marksBoolOptional
new_noncontact_peers_require_premiumBoolOptional

Type: GlobalPrivacySettings

Example:

$globalPrivacySettings = ['_' => 'globalPrivacySettings', 'archive_and_mute_new_noncontact_peers' => Bool, 'keep_archived_unmuted' => Bool, 'keep_archived_folders' => Bool, 'hide_read_marks' => Bool, 'new_noncontact_peers_require_premium' => Bool];