MadelineProtoDocs/docs/API_docs/constructors/help.premiumPromo.md
2024-05-01 14:53:46 +02:00

2.1 KiB

title description nav_exclude image redirect_from
help.premiumPromo Telegram Premium promotion information true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/help_premiumPromo.html

Constructor: help.premiumPromo

Back to constructors index

Telegram Premium promotion information

Note that the video_sections+videos fields are a list of videos, and the corresponding premium feature identifiers.
They're equivalent to a section => video dictionary, with keys from video_section and values from videos.
The keys in video_sections correspond to a specific feature identifier, and the associated promotional video should be shown when the associated feature row is clicked.

Attributes:

Name Type Required Description
status_text string Yes Description of the current state of the user's Telegram Premium subscription
status_entities Array of MessageEntity Yes Message entities for styled text
video_sections Array of string Yes A list of premium feature identifiers », associated to each video
videos Array of Document Yes A list of videos
period_options Array of PremiumSubscriptionOption Yes Telegram Premium subscription options
users Array of User Yes Related user information

Type: help.PremiumPromo

Example:

$help_premiumPromo = ['_' => 'help.premiumPromo', 'status_text' => 'string', 'status_entities' => [MessageEntity, MessageEntity], 'video_sections' => ['string', 'string'], 'videos' => [Document, Document], 'period_options' => [PremiumSubscriptionOption, PremiumSubscriptionOption], 'users' => [User, User]];