Link Search Menu Expand Document

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:

NameTypeRequiredDescription
status_textstringYesDescription of the current state of the user’s Telegram Premium subscription
status_entitiesArray of MessageEntityYesMessage entities for styled text
video_sectionsArray of stringYesA list of premium feature identifiers », associated to each video
videosArray of DocumentYesA list of videos
period_optionsArray of PremiumSubscriptionOptionYesTelegram Premium subscription options
usersArray of UserYesRelated 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]];