UpdatePrivacy

class pyrogram.raw.types.UpdatePrivacy

Privacy rules were changed

Constructor of Update.

Details:
  • Layer: 227

  • ID: EE3B272A

Parameters:
  • key (PrivacyKey) – Peers to which the privacy rules apply

  • rules (List of PrivacyRule) – New privacy rules

TL Schema

updatePrivacy#ee3b272a
key:PrivacyKey
rules:Vector<PrivacyRule>

= Update

Parameter Tree

UpdatePrivacy
├── key → PrivacyKey
│ ├── PrivacyKeyChatInvite
│ ├── PrivacyKeyPhoneCall
│ ├── PrivacyKeyPhoneP2P
│ ├── PrivacyKeyForwards
│ ├── PrivacyKeyPhoneNumber
│ ├── PrivacyKeyAbout
│ ├── PrivacyKeyBirthday
│ └── PrivacyKeySavedMusic
└── rules → Vector < PrivacyRule >
│ └── users → Vector < long >
│ └── users → Vector < long >
│ └── chats → Vector < long >
│ └── chats → Vector < long >

Example

UpdatePrivacy(
    key=PrivacyKeyStatusTimestamp(),
    rules=[
            PrivacyValueAllowContacts()
        ],
)