Skip to main content

25. [Plugin] Conditions

[BUTTONS] 25. CONDITIONS

Adding Conditions letting you to restrict users from accessing to the functions of certain buttons in your bot.

〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
🔌 Plugin of functions:
«12. Bonus Button»
«21. Button Exchange-1 (Fixed)»
«22. Button Exchange-2 (Course)»
«52. Actions»
«Inline Buttons»
❗️ Plugins are not working without the mother feature as they are its components.
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️

▪ To add conditions to the button go to:
🎛 Buttons Editor
*️⃣ Settings

▪ Logic operators that you can use in conditions creation:
ᅠ>, >= greater, greater or equal
ᅠ<, <= less, less or equal
ᅠ== equal (double sign)
ᅠ!= not equal
ᅠ"or" logical "or"
ᅠ"and" logical "and"

➠ Example:
{%balance% > 0}
Button will work only if user's balance more than zero.

▪ You can use Expressions
https://t.me/MenuBuilderHelpBot?start=m10215
in your Conditions even if they are not available (not purchased) for this particular bot.
➠ Example:
Expression
{(%balance% > 0) or (%refcount% > 10)}
Button will work only if user's balance more than zero or user has more than 10 referrals.

📄 MANUAL: Conditions:
https://docs.menubuilder.cc/books/5-functions-manuals/page/conditions

The condition on the button DOES PROTECTS sub-menus, which lets you create User Categories/Groups and Access by Password.
📄 LIFE-HACK: User groups in bots:
https://docs.menubuilder.cc/books/7-life-hacks/page/life-hack-2-user-groups-in-bots
📄 LIFE-HACK: Password protected bots:
https://docs.menubuilder.cc/books/7-life-hacks/page/life-hack-1-password-protected-bots

To add feature go to your bot:
☞ 🔐Admin | 🧩Extensions | 📂Buttons
🔌 (Plugin) Conditions
〰️〰️〰️〰️〰️〰️〰️〰️〰️〰️
👾 For 1 bot