InputPrivacyValueAllowUsers

class pyrogram.raw.types.InputPrivacyValueAllowUsers

Allow only certain users

Constructor of InputPrivacyRule.

Details:
  • Layer: 223

  • ID: 131CC67F

Parameters:

users (List of InputUser) – Allowed users

TL Schema

inputPrivacyValueAllowUsers#131cc67f
users:Vector<InputUser>

= InputPrivacyRule

Parameter Tree

InputPrivacyValueAllowUsers
└── usersVector < InputUser >
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── user_idlong

Example

InputPrivacyValueAllowUsers(
    users=[
            await app.resolve_user(chat_id)
        ],
)