Link Search Menu Expand Document

Constructor: help.promoData

Back to constructors index

A set of useful suggestions and a PSA/MTProxy sponsored peer, see here » for more info.

Attributes:

NameTypeRequiredDescription
proxyBoolOptionalSet 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.
expiresintYesUnixtime when to re-invoke help.getPromoData.
peerlongOptionalMTProxy/PSA peer
psa_typestringOptionalFor Public Service Announcement peers, indicates the type of the PSA.
psa_messagestringOptionalFor Public Service Announcement peers, contains the PSA itself.
pending_suggestionsArray of stringYesContains a list of pending suggestions ».
dismissed_suggestionsArray of stringYesContains a list of inverted suggestions ».
custom_pending_suggestionPendingSuggestionOptionalContains a list of custom pending suggestions ».
chatsArray of ChatYesChat info
usersArray of UserYesUser 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]];