From f5749c0ddb022fcd0b390e5f0931888984acb51c Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 9 Sep 2022 15:05:06 +0000 Subject: [PATCH] Update content of files --- .../corefork.telegram.org/api/premium.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/data/web/corefork.telegram.org/api/premium.html b/data/web/corefork.telegram.org/api/premium.html index 7af6ef891f..4811360dff 100644 --- a/data/web/corefork.telegram.org/api/premium.html +++ b/data/web/corefork.telegram.org/api/premium.html @@ -55,11 +55,9 @@ ---functions--- -help.getAppConfig#98914110 = JSONValue; users.getUsers#d91a548 id:Vector<InputUser> = Vector<User>; -

Telegram Premium offers a set of additional features and raised limits: info about them can be fetched using ħelp.getAppConfig, as described in the client configuration page ».
-Use users.getUsers with inputUserSelf to fetch info about the current subscription status from the premium flag of the returned user constructor.

-

The following fields are related to Telegram Premium, and clients should be aware of the current subscription status to eventually modify their behavior accordingly.

+

Telegram Premium offers a set of additional features and raised limits: clients should be aware of the current subscription status to accordingly modify client behavior.

+

Use users.getUsers with inputUserSelf to fetch info about the current subscription status from the premium flag of the returned user constructor.

Promo page

help.premiumPromo#8a4f3c29 status_text:string status_entities:Vector<MessageEntity> video_sections:Vector<string> videos:Vector<Document> currency:string monthly_amount:long users:Vector<User> = help.PremiumPromo;
 
@@ -69,13 +67,16 @@ Use users.getUsers with badge of a Premium user or hitting one of the Premium limits listed below should open a Telegram Premium modal.  

-

This modal should list the Premium features contained in the premium_promo_order appConfig field, and presented in the order dynamically specified by the appConfig.
-help.getPremiumPromo must also be called, to fetch a list of promotional videos to show when clicking on a Premium feature row, and the current subscription status, to be shown in the header of the modal:

+

Call help.getPremiumPromo and help.getAppConfig to fetch info on how to build the premium modal.

+

help.getAppConfig will return a list of Premium features in the premium_promo_order appConfig field, and the modal should contain a row for each feature identifier.

+

The help.premiumPromo constructor returned by help.getPremiumPromo contains the following fields:

    -
  • status_text+status_entities+users - Contain the current subscription status (with associated styled text entities and mentions)
  • -
  • video+video_sections - Contain a list of videos, and the corresponding premium feature identifiers.
  • +
  • status_text+status_entities - The current subscription status (with associated styled text entities), to be shown in the modal header.
  • +
  • video_sections+videos - A list of videos, and the corresponding premium feature identifiers.
    +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 clicking on the associated feature row.
  • currency - Three-letter ISO 4217 currency code
  • -
  • monthly_amount - Monthly price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
  • +
  • monthly_amount - Monthly price of the subscription in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
Feature identifiers

This list contains the feature identifiers returned in the premium_promo_order appConfig array field.