Answer the question
In order to leave comments, you need to log in
Bitrix24 Bot API, how to properly receive events via webhooks?
We need a chatbot in Bitrix that connects to the API on node.js. I use ngrok for debugging.
Through the incoming webhook, I call the imbot.register method with the following parameters:
{
CODE: 'mynewbot',
TYPE: 'B',
EVENT_MESSAGE_ADD: 'https://xxxx.ngrok.io/bxchatbot',
EVENT_WELCOME_MESSAGE: 'https://xxxx.ngrok.io/bxchatbot',
EVENT_BOT_DELETE: 'https://xxxx.ngrok.io/bxchatbot',
OPENLINE: 'N',
CLIENT_ID: 'mynewbot',
PROPERTIES: {
NAME: 'Борис',
LAST_NAME: '',
COLOR: 'GRAPHITE',
EMAIL: '[email protected]'
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question