UpdatePrivacy
- class pyrogram.raw.types.UpdatePrivacy
Privacy rules were changed
Constructor of
Update.- Details:
Layer:
223ID:
EE3B272A
- Parameters:
key (
PrivacyKey) – Peers to which the privacy rules applyrules (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│ ├──
PrivacyKeyProfilePhoto│ ├──
PrivacyKeyPhoneNumber│ ├──
PrivacyKeyAddedByPhone│ ├──
PrivacyKeyVoiceMessages│ ├──
PrivacyKeyAbout│ ├──
PrivacyKeyBirthday│ ├──
PrivacyKeyNoPaidMessages│ └──
PrivacyKeySavedMusic└── rules →
Vector < PrivacyRule >│ └── users →
Vector < long >│ └── users →
Vector < long >│ └── chats →
Vector < long >│ └── chats →
Vector < long >Example
UpdatePrivacy(
key=PrivacyKeyStatusTimestamp(),
rules=[
PrivacyValueAllowContacts()
],
)