How to assign an editor to a variable and change the value of a variable
The value of any required Variable can be changed using the editor identical to the Balance Editor. This editor can be assigned to any button anywhere in the menu and this button will become an Editor.
Go in your bot:
☞ Button Editor
• Select a button by pressing it, or create a new one.
• Press the inline button with an asterisk ( ✱ ), in the message with the button's data, to get into its Settings.
• Click «Assign Editor».
• Specify a variable.
Multiple editors can be assigned to one variable.
It is advisable to switch such a button to the "Admin Only" mode.
Of course, system won't let users go there anyway, but they don't need to see it either.
More info on variables management (using Balance as an example) in manual Basics of Balance management.