MadelineProtoDocs/old_docs/API_docs_v30/constructors/help.proxyDataPromo.md
2020-06-16 17:50:25 +02:00

1.1 KiB

title description image redirect_from
help.proxyDataPromo Promotion channel associated to a certain MTProxy https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/help_proxyDataPromo.html

Constructor: help.proxyDataPromo

Back to constructors index

Promotion channel associated to a certain MTProxy

Attributes:

Name Type Required Description
expires int Yes Expiration date of proxy info, will have to be refetched in expires seconds
peer Peer Yes The promoted channel
chats Array of Chat Yes Chats
users Array of User Yes Users

Type: help.ProxyData

Example:

$help.proxyDataPromo = ['_' => 'help.proxyDataPromo', 'expires' => int, 'peer' => Peer, 'chats' => [Chat, Chat], 'users' => [User, User]];

Or, if you're into Lua:

help.proxyDataPromo={_='help.proxyDataPromo', expires=int, peer=Peer, chats={Chat}, users={User}}