MadelineProtoDocs/docs/API_docs/constructors/globalPrivacySettings.md
2024-05-01 14:53:46 +02:00

1.5 KiB

title description nav_exclude image
globalPrivacySettings Global privacy settings true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: globalPrivacySettings

Back to constructors index

Global privacy settings

Attributes:

Name Type Required Description
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

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];