GlobalPrivacySettings

class pyrogram.raw.base.GlobalPrivacySettings

Global privacy settings

Constructors:

This base type has 1 constructor available.

GlobalPrivacySettings

Global privacy settings

Functions:

This object can be returned by 2 functions.

account.GetGlobalPrivacySettings

Get global privacy settings

account.SetGlobalPrivacySettings

Set global privacy settings

TL Schema

globalPrivacySettings#fe41b34f
flags:#
archive_and_mute_new_noncontact_peers:flags.0?true
keep_archived_unmuted:flags.1?true
keep_archived_folders:flags.2?true
hide_read_marks:flags.3?true
new_noncontact_peers_require_premium:flags.4?true
display_gifts_button:flags.7?true
noncontact_peers_paid_stars:flags.5?long
disallowed_gifts:flags.6?DisallowedGiftsSettings

= GlobalPrivacySettings

Parameter Tree

GlobalPrivacySettings
├── archive_and_mute_new_noncontact_peerstrue (optional)
├── keep_archived_unmutedtrue (optional)
├── keep_archived_folderstrue (optional)
├── hide_read_markstrue (optional)
├── new_noncontact_peers_require_premiumtrue (optional)
├── display_gifts_buttontrue (optional)
├── noncontact_peers_paid_starslong (optional)
└── disallowed_giftsDisallowedGiftsSettings (optional)
├── disallow_unlimited_stargiftstrue (optional)
├── disallow_limited_stargiftstrue (optional)
├── disallow_unique_stargiftstrue (optional)
├── disallow_premium_giftstrue (optional)
└── disallow_stargifts_from_channelstrue (optional)

Example

GlobalPrivacySettings(
    archive_and_mute_new_noncontact_peers=None,
    keep_archived_unmuted=None,
    keep_archived_folders=None,
    hide_read_marks=None,
    new_noncontact_peers_require_premium=None,
    display_gifts_button=None,
    noncontact_peers_paid_stars=0,
    disallowed_gifts=DisallowedGiftsSettings(
        disallow_unlimited_stargifts=None,
        disallow_limited_stargifts=None,
        disallow_unique_stargifts=None,
        disallow_premium_gifts=None,
        disallow_stargifts_from_channels=None
    ),
)