A variable name must consist of Latin letters or numbers. Numbers mustn't be at the beginning of the variable name.
To make a variable from several words, you can write it as follows:
For convenience, you can shorten words in long variables, for example, usNph.
Common Mistakes in Naming a Variable
last_request, this_user are default variables. Writing new values to the default variables can easily disrupt the entire work of the bot. You can work with them, but you cannot change User Input, Record, Fork using the components.
sum, text are actions and types. In this case, the data is often written incorrectly, because the bot perceives these values as an action with variables or a data type.
var 1 is a name with a space. The variable won't be recorded, and you won't be able to work with it in the future.
cyrillic — variables named in non-Latin letters, most often don't work.
Data Types of Variables
text;Any text entered by the user. In the fork, you need a complete match with the entered text or the selected button.
email;Email only, recognizes only in format email@example.com
href;Links starting with the protocol (for example, https://vk.com instead of vk.com)
number;Only numbers without spaces
location;Location (best used with buttons with hints — request a geolocation)
file;The file is sent to the server, then you can download it from the link.
contact;It is used to receive a contact from Telegram (buttons with hints, contact type)
To write variables, you need to use User Input, Assign, Fork components.