InputPrivacyValueAllowUsers

class pyrogram.raw.types.InputPrivacyValueAllowUsers

Allow only certain users

Constructor of InputPrivacyRule.

Details:
  • Layer: 227

  • ID: 131CC67F

Parameters:

users (List of InputUser) – Allowed users

TL Schema

inputPrivacyValueAllowUsers#131cc67f
users:Vector<InputUser>

= InputPrivacyRule

Parameter Tree

InputPrivacyValueAllowUsers
└── users → Vector < InputUser >
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_id → long
│ └── access_hash → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── user_id → long

Example

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