Skip to main content

88. Macros of Premium Check

[MACROS] 88. MACROS OF PREMIUM CHECK

The macros checks the «Telegram Premium» status of the account. It can be used to protect the bot functions from low-quality contingent - the presence of Premium in the account can indirectly indicate that this is not a "one-day" account.

%is_premium%
Returns «false» (0) or «true» (1).
0 - if the user's account is NOT Premium
1 - if the user's account is Premium

The macros can be used, for example, in the Conditions of buttons, Actions or Expressions.
📄 MANUAL: Conditions:
https://docs.menubuilder.cc/books/5-functions-manuals/page/conditions
📄 MANUAL: Actions:
https://docs.menubuilder.cc/books/5-functions-manuals/chapter/actions
📄 MANUAL: Expressions:
https://docs.menubuilder.cc/books/5-functions-manuals/page/expressions

❗️ You can get the current Premium status ONLY in response to the user's action in the bot (by pressing a button) - therefore, the macros cannot be used in events (activities) not related to direct user actions. For example, in - a mailing (broadcast) and its condition. THEREFORE: if something does not work for you - first check whether the conditions described above are met.

What Macros are in general, what other types are available in the @MenuBuilderBot constructor, and how to use them -read in manual.
📄 MANUAL: Macros:
https://docs.menubuilder.cc/books/8-glossary/page/macros

To add feature go to your bot:
☞ 🔐Admin | 🧩Extensions | 📂Macros
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
👾 For 1 Bot