Command settings

Материал из боты telegram - ebot.one - редактор ботов
Версия от 20:20, 4 февраля 2018; Maiske (обсуждение | вклад) ([eng])
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

A lot of properties of the command can be changed in the command settings:

Settings 1.png

In order not to clutter up an infinite number of fields in the settings, we made a separate "Settings" field, in which we can sometimes specify specific values, influencing the logic of the command's work.

Settings 2.png

For example, you can change the visibility of the command name when a bot responds by using the name_command_display key with a value of none. In this particular case, you can achieve the same result by switching the appropriate checkbox to the bottom of the command settings.

Settings 3.png

There are many keys by type name_command_display and you should specify them in the format JSON.

If there is a backkey in the data, it must be escaped with another backslash:

Val3.jpg

A set of keys in the settings can help validate input of user or configure feedback.

You can also transfer settings to an external script.

Read in Other Languages: rus / deu