MadelineProtoDocs/old_docs/API_docs_v109/constructors/help.proxyDataPromo.md
2020-03-06 12:24:14 +01:00

43 lines
1.1 KiB
Markdown

---
title: help.proxyDataPromo
description: Promotion channel associated to a certain MTProxy
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/help_proxyDataPromo.html
---
# Constructor: help.proxyDataPromo
[Back to constructors index](index.md)
Promotion channel associated to a certain MTProxy
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|expires|[int](../types/int.md) | Yes|Expiration date of proxy info, will have to be refetched in `expires` seconds|
|peer|[Peer](../types/Peer.md) | Yes|The promoted channel|
|chats|Array of [Chat](../types/Chat.md) | Yes|Chats|
|users|Array of [User](../types/User.md) | Yes|Users|
### Type: [help.ProxyData](../types/help.ProxyData.md)
### Example:
```php
$help.proxyDataPromo = ['_' => 'help.proxyDataPromo', 'expires' => int, 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]];
```
Or, if you're into Lua:
```lua
help.proxyDataPromo={_='help.proxyDataPromo', expires=int, peer=Peer, chats={Chat}, users={User}}
```