MadelineProtoDocs/old_docs/API_docs_v7/constructors/inputPrivacyValueAllowUsers.md

39 lines
822 B
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02:00
---
title: inputPrivacyValueAllowUsers
description: Allow only certain users
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputPrivacyValueAllowUsers
[Back to constructors index](index.md)
Allow only certain users
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|users|Array of [Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | Yes|Allowed users|
### Type: [InputPrivacyRule](../types/InputPrivacyRule.md)
### Example:
```php
$inputPrivacyValueAllowUsers = ['_' => 'inputPrivacyValueAllowUsers', 'users' => [InputUser, InputUser]];
```
Or, if you're into Lua:
```lua
inputPrivacyValueAllowUsers={_='inputPrivacyValueAllowUsers', users={InputUser}}
```