Views: 9246
Last Modified: 09.10.2024

Working with chatbots:

MethodMethod Description
imbot.register Chatbot registration.
imbot.unregister Chatbot deletion.
imbot.update Chatbot data update.
imbot.bot.list Getting available chat bots.

Working with chats:

MethodMethod Description
imbot.chat.user.list Retrieving list of participants.
imbot.chat.user.add Participants invitation.
imbot.chat.user.delete Participants deletion.
imbot.chat.leave Chatbot exit from specified chat.
imbot.chat.updateTitle Chat title update.
imbot.chat.updateColor Chat color update.
imbot.chat.updateAvatar Chat icon update.
imbot.chat.add Creating a chat by chatbot.
imbot.chat.get Getting chat ID.
imbot.chat.setOwner Chat owner change by chatbot.
imbot.dialog.get Getting dialog data.

Working with messages:

MethodMethod Description
imbot.message.add Sends message from chatbot.
imbot.message.update Updates (changes) chatbot message.
imbot.message.delete Deletes chatbot message.
imbot.message.like Sets message "Like".
imbot.chat.sendTyping Sends "Chatbot is typing a message...".

Working with commands:

MethodMethod Description
imbot.command.register Registration of command to be processed by chatbot.
imbot.command.unregister Command processing deletion.
imbot.command.update Command data update.
imbot.command.answer Posting command answer.

Working with events:

EventEvent description
ONAPPINSTALL Application installation event.
ONAPPUPDATE Application update event.
ONIMBOTMESSAGEADD Event for chatbot to receive message.
ONIMBOTMESSAGEUPDATE Event for chatbot to update message.
ONIMBOTMESSAGEDELETE Event for chatbot to delete message.
ONIMCOMMANDADD Event for chatbot to receive a command.
ONIMJOINCHAT Event for chatbot to receive information that it has joined a chat (or private chat).
ONIMBOTDELETE Event to delete chatbot.



Courses developed by Bitrix24