Commands

What it is "bot command"?

Command - it is text from user. Bot can sent answer for command or do something. Usually command start with "/", e.g. /hello. But it is not always required.

/start and /START - it is not same commands. Command is case sensitive

How to execute command with any text from user? (Master command)

Just use * in command name.

See more

Command's fields

Command can have:

Field

Description

Example

command

use for command call

"/start", "/run". For any text use "*"

case sensitive

help

command's description

"Welcome to RentBot. See /help or /order now"

answer

text answer

"Hello. You need /register before continue"

aliases

use for alternative command call

"/welcome, /hello, ?, help"

keyboard

send keyboard to user on command call

"order, about"

scenarios

BJS code for execution

2+2

group

command allowed only for this user's group

guests, clients

need_reply

command wait for answer from user. Can be true, false or blank. If true BJS code execute after users'answer

true, false

auto_retry

command can be runs with interval in secs

600 - repeated once at 10 minutes

How to create and edit commands?

You can edit command directly from application.

Commands importing

Make all commands with Google Table.

Also you can copy Template table from http://bit.ly/bb_table_template into your own table.

This is an ideal option: everything is quite simple. Go to Main menu > File > Make a copy. You will need a separate sheet for the commands that will contain the commands. Then you can add commands in rows and do the CSV import from application.

Last updated