Constructor: help.promoData
A set of useful suggestions and a PSA/MTProxy sponsored peer, see here » for more info.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
proxy | Bool | Optional | Set when connecting using an MTProxy that has configured an associated peer (that will be passed in peer , i.e. the channel that sponsored the MTProxy) that should be pinned on top of the chat list. |
expires | int | Yes | Unixtime when to re-invoke help.getPromoData. |
peer | long | Optional | MTProxy/PSA peer |
psa_type | string | Optional | For Public Service Announcement peer s, indicates the type of the PSA. |
psa_message | string | Optional | For Public Service Announcement peer s, contains the PSA itself. |
pending_suggestions | Array of string | Yes | Contains a list of pending suggestions ». |
dismissed_suggestions | Array of string | Yes | Contains a list of inverted suggestions ». |
custom_pending_suggestion | PendingSuggestion | Optional | Contains a list of custom pending suggestions ». |
chats | Array of Chat | Yes | Chat info |
users | Array of User | Yes | User info |
Type: help.PromoData
Example:
$help_promoData = ['_' => 'help.promoData', 'proxy' => Bool, 'expires' => int, 'peer' => long, 'psa_type' => 'string', 'psa_message' => 'string', 'pending_suggestions' => ['string', 'string'], 'dismissed_suggestions' => ['string', 'string'], 'custom_pending_suggestion' => PendingSuggestion, 'chats' => [Chat, Chat], 'users' => [User, User]];