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_marksBoolOptionalIf this flag is set, the inputPrivacyKeyStatusTimestamp key will also apply to the ability to use messages.getOutboxReadDate on messages sent to us.
Meaning, users that cannot see our exact last online date due to the current value of the inputPrivacyKeyStatusTimestamp key will receive a 403 USER_PRIVACY_RESTRICTED error when invoking messages.getOutboxReadDate to fetch the exact read date of a message they sent to us.
The userFull.read_dates_private flag will be set for users that have this flag enabled.
new_noncontact_peers_require_premiumBoolOptionalSee here for more info on this flag ».
display_gifts_buttonBoolOptionalEnables or disables our userFull.display_gifts_button flag: if the userFull.display_gifts_button flag of both us and another user is set, a gift button should always be displayed in the text field in private chats with the other user: once clicked, the gift UI should be displayed, offering the user options to gift Telegram Premium » subscriptions or Telegram Gifts ».
noncontact_peers_paid_starslongOptionalIf configured, specifies the number of stars users must pay us to send us a message, see here » for more info on paid messages.
disallowed_giftsDisallowedGiftsSettingsOptionalDisallows the reception of specific gift types.

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, 'display_gifts_button' => Bool, 'noncontact_peers_paid_stars' => long, 'disallowed_gifts' => DisallowedGiftsSettings];