MadelineProtoDocs/old_docs/API_docs_v104/constructors/help.proxyDataPromo.md
2019-12-27 18:25:37 +01:00

1.1 KiB

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

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}}