Last Modified: 13.05.2022
Deletes a command processing
function is used here for illustration purposes only. It is taken from the EchoBot
example. You can send a REST command with your own function, or use the BX24.callMethod
Command processing requires for application to process a command-adding event ONIMCOMMANDADD
$result = restCommand('imbot.command.unregister', Array(
'COMMAND_ID' => 13, // Deletion command ID
'CLIENT_ID' => '', // Chatbot string ID, used only in Webhooks mode
true or error.
Possible error codes
||Command not found.
||Chatbot is not a part of this application: you can only work with chatbots, installed within application framework.
||Something went wrong.