You can make export for any free bot in the Store. Just install it.
It is good for practice.
File name - it is command name (But it can be rewritten in command description)
For commands with "/" (for example command "/start") file name is "_start"
Command can have:
scnarios(for simple logic) and other options.
If the command has a folder - it is located in a folder on the disk with the same name
It is optional file header:
help: this is help for ccommand
need_reply: [ true or false here ]
auto_retry_time: [ time in sec ]
answer: it is example answer for /test command
keyboard: button1, button2
aliases: /test2, /test3
Command description - it is optional block.
multiline also supported. For example for answer:
You can have only answer (or others) key in the command description. All keys - optional
You can store common code in the libs folder