Views: 10537
Last Modified: 13.05.2022

Note: restCommand 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 or bitrix24-php-sdk methods.

МетодMethod description
imbot.message.add Sends a chatbot message.
imbot.message.update Updates (changes) the chatbot message.
imbot.message.delete Deletes chatbot message. Sets message "Like". Sends "Chatbot is typing a message...".

Attention! These methods of message processing are usually employed when the user is typing something, that is why the ONIMBOTMESSAGEADD event must be processed.

Courses developed by Bitrix24