diff --git a/data/web/corefork.telegram.org/api/premium.html b/data/web/corefork.telegram.org/api/premium.html index e1f2bee1bc..aa6972de02 100644 --- a/data/web/corefork.telegram.org/api/premium.html +++ b/data/web/corefork.telegram.org/api/premium.html @@ -74,45 +74,45 @@ You can also directly use help.getPremium

Clients should show a Telegram Premium button in the settings.
Clicking on this button in the settings, clicking on the
badge of a Premium user or hitting one of the Premium limits listed below should open a Telegram Premium 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 feature identifiers in the premium_promo_order appConfig field (array of strings): the modal should contain a row for each returned feature.

+

help.getAppConfig will return a list of Premium feature identifiers in the premium_promo_order appConfig field: the modal should contain a row for each returned feature, ordered as specified in the returned array.

Possible feature identifiers:

-

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

+

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

Premium limits

What follows is a list of appConfig integer config parameters.

-

Note that whenever config keys end with a * in the following list, the * should be replaced with default or premium, to fetch the appropriate limit value for normal and Premium users.

+

Note that whenever config keys end with a * in the following list, the * should be replaced with premium or default, to fetch the appropriate limit value for Premium and non-Premium users.

Badge

Users with a Telegram Premium subscription (user.premium is set) should have a Telegram Premium badge next to their name.

@@ -148,7 +148,7 @@ Then, when the user clicks on the subscribe button in the sent invoice, follow t

If after calling users.getFullUser the resulting userFull constructor has one or more premiumGiftOptions in the premium_gifts field, we can gift a Telegram Premium subscription to this user.

The premiumGiftOption constructors contain an ordered list of Premium gift offers with discounts over the base price: to process the gift payment open the deep link contained in the bot_url field.

Blocked Telegram Premium

-

If the premium_purchase_blocked app configuration parameter is set, the user can't purchase a Premium account, and all Telegram Premium features must be hidden (like the stars of Premium users, Telegram Premium purchase buttons, and so on).

+

If the premium_purchase_blocked app configuration parameter is set, the user can't purchase a Premium account, and all Telegram Premium features must be hidden (like the badges of Premium users, Telegram Premium purchase buttons, and so on).