This action is used to process commands of the form /commandname
or passed through deeplink, if a parameter is passed, sets the constant {{messenger_input_param}}
No action configuration required.
As possible variants of the event, it returns the command that it received from the messenger (in the above example, there will be an event commandname
).
This makes it possible to implement the capabilities of Telegram, which allows you to use different commands, which is configured in BotFather and then looks like this:
Facebook, Viber do not support commands as such, but you can write / commadname in the input line and Kwizbot will treat it as a command.
When transmitted via deeplink, the start
command is always transmitted. Parameters passed through deeplink or in the form /commandname paramvalue
will work the same in all messengers.
Read more about the practical application of this action with deeplink here User subscription to bot notifications
Create an action in the script, specify one event for each command
General view of the script for the command processing
For each command, you need to create a separate event in action and the corresponding branches of the script.
For example, for the / menu command, you need the menu event