Life-Hack #5: One time Bonus for Subscription in @MenuBuilderBot

Life-Hack #5: One time Bonus for Subscription in @MenuBuilderBot

MegaHubTelegram

This life-Hack will allow you to create one-time Bonuses with or without checking user's subscription to your Channel or Group, with or without percent accrual to the Referral Parent, as well as the functionality of a limited number of bonuses for the bot.


📜 The translation of this materials into your native language can be automatically done using the Google translator. Follow the link and select the desired language in the title:
https://translate.googleusercontent.com/translate_c?depth=1&sl=en&tl=es&u=https://telegra.ph/Life-Hack-5-One-time-Bonus-for-Subscription-in-MenuBuilderBot-EN-09-26

Life-Hack - involves using the existing functionality in not obvious and rather clever ways, creating functions in your bot that were not originally laid down by the developers of the constructor.
In this section, we publish various options and ready-made solutions for what can be created using the capabilities already available in the @MenuBuilderBot constructor.
When creating such guides, it is assumed that you, to one degree or another, are already familiar with the basic functions of the designer and the basic mechanisms of working with it. If in the process of studying the presented material your basic knowledge is not enough, we recommend that you study the basics before continuing.



⬛ Purchase of functionality

All functionality is purchased IN YOUR BOT, for this go to your bot:
☞ 🔐Admin | 🧩Extensions

IMPORTANT : The purchase of functionality for the bot is available only to the Creator (owner) of the bot. Admins CANNOT buy functionality!


⬛ One-time bonus and its variations


This guide will allow you to create a one-time user bonus in your bot. Such a bonus can be used as a one-time reward for any action, as an initial bonus for a new user, or be timed to coincide with any important event for your project and be provided from time to time. Optionally, you can add the accrual of percent to the referral parent and connect the verification of the subscription to the channel or group. Subscription verification will reward the user for the subscription.


You will need:

1. Variable (numeric)
☞ 🔐Admin | 🧩Extensions | 📂Variables
2. "Fixed Exchange" button
☞ 🔐Admin | 🧩Extensions | 📂Buttons
3. Conditions for buttons
☞ 🔐Admin | 🧩Extensions | 📂Buttons
4. (Optional) Bonus to Ref. Parent
☞ 🔐Admin | 🧩Extensions | 📂Buttons
5. (Optional) Check subscription function
☞ 🔐Admin | 🧩Extensions | 📂Bot Protection


1. Create a variable
Go to your bot:
☞ 🔐Admin | 🗄Variables | 📙Numeric | ➕ Create Variable
Variable name "bclaim" (you can use your own name).

2. Create a bonus button
Click in your bot:
🎛 Button Editor | ➕ Add Button
The name of the "Bonus" button.

3. Add the function of the accrual
Without leaving the Editor of Buttons (if you left, go again) press the inline settings button [*].
Click "Set Fixed Exchange"
Variable for charge: "bclaim"
Amount of charge: -1 (minus one charge, in fact will add one to the variable)
Variable for charge: "balance". (you can specify your own)
Amount of accrual: 200 (indicate the amount of accrual you need)
Success message: "You have received %balance_v% on the balance."
Failure Message: no need - click "➖ Set Empty"


ADDITIONAL: If the Referral Parent needs a bonus, then it can be added at this moment. To activate the ability to add a bonus, you need to enable this function in advance, for this go to your bot:
☞ 🔐Admin | 🧩Extensions | 📂Buttons | Bonus Ref. to the parent
The Bonus is indicated as a percentage of the amount debited (1) or the amount accrued (2). Make sure the button below is set to: (2). Send the bot the required amount of interest from the accrual. The amount will be credited to the Balance. if the bonus is not needed, click - "✔️ Leave as is".


DO NOT exit the settings of the button (if you have exited, go back in).


4. Add a condition to the button
Press "Assign Condition".
Condition: {%bclaim% == 0}
Message: "You have already claimed this bonus."

5. Adding the Subscription verification function
You can add it without leaving the button settings after creating the Condition. if you left the settings and the Button Editor, then go back again:
🎛 Button Editor | press the inline settings button [*]
Press: Check subscription (join) and switch it to (▶️ On). The current setting status is indicated on the button.


⬛ Limited number of bonuses per bot.


This principle can be used if you need to distribute a limited number of bonuses in your bot - to those people who were the first to click on the button.


You will need:

1. Two variables (numeric and global)
☞ 🔐Admin | 🧩Extensions | 📂Variables
2. Actions - 5-6 peaces
☞ 🔐Admin | 🧩Extensions | 📂Actions
3. Conditions for buttons
4. Macros and Expressions for Buttons
5. Bonus for the Global Variable
☞ 🔐Admin | 🧩Extensions | 📂Buttons
6. (Optional) Check subscription function
☞ 🔐Admin | 🧩Extensions | 📂Bot Protection


1. Create variables
Go to your bot:
☞ 🔐Admin | 🗄Variables | 📙Numeric | ➕ Create Variable
The variable name is "bclaim".
☞ 🔐Admin | 🗄Variables | 📘Global | ➕ Create Variable
The variable name is "btotal".

2. Create a bonus button
Click in your bot:
🎛 Button Editor | ➕ Add Button
The name of the "Bonus" button.

3. Adding the function of accrual
Without leaving the Editor of Buttons (if you left, go again) press the inline settings button [*].
Click "Assign Action"
● Select "Action Conditions"
Condition: {%btotal% > 0}
Failure message: "Bonuses have been exhausted".
Click the "DO NOT SHOW content button"
● Select "Action Numbers"
Variable to change: "bclaim"
Operation type: Change Value
Value: 1 (one)
Condition: {%bclaim% == 0}
Failure message: "You have already claimed this bonus."
Success message: No need "➖ Set Empty"
● Select "Action Numbers"
Variable to change: "btotal"
Operation type: Change Value
Value: -1 (one)
Condition: {%btotal% > 0}
Failure message: "The number of bonuses has been exhausted".
Success message: No need "➖ Set Empty"
● Select "Action Numbers"
Variable to change: "balance"
Operation type: Change Value
Value: 200 (specify the amount of accrual you need)
Condition: not necessary "➖ Set Empty"
Failure message: No need "➖ Set Empty"
Success message: "You received %balance_v% on your balance."


ADDITIONAL: If the Referral Parent needs a bonus, then it can be added at this moment. If the referral parent does not need to be credited, skip adding the next Action.


● Select "Action Referral" (optional)
Variable to change: "balance"
Value: 200 (specify the amount you need to accrue or the one you used for the bonus)
Percentage of the bonus: 10 (specify the percentage of the bonus you need)
Condition: no need "➖ Set Empty"
Failure message: no need "➖ Set Empty"

This Action allows you to add a bonus to any variable, it doesn't have to be balance.

DO NOT exit the settings of the button (if you have exited, go back in).

4. Add a condition to the button
Press "Assign Condition".
Condition: {%bclaim% == 0}
Message: "You have already claimed this bonus."

5. Add the Subscription verification function (optional)
You can add it without leaving the button settings after creating the Condition. if you left the settings and the Button Editor, then go back again:
🎛 Button Editor | press the inline settings button [*]
Press: Check subscription (join) and switch it to (▶️ On). The current setting status is indicated on the button.

6. Setting the number of bonuses for distribution
For this you can use the command /varset

This will distribute 50 bonuses in your bot (set the desired number).


https://telegra.ph/Menu-Builder---All-Help-Materials-02-22

Report Page