Sending messages to chat bitrix24 #92
italky36
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To send a message to bitrix 24 chat you need to create an inbound webhook and grant it the “Create and manage chatbots (imbot)” and “Chat and notifications (im)” permissions. Then copy the webhook and add to it the parameter “DIALOG_ID” where you can write the ID of the user or chat where the message will be sent. As a result, your webhook link will look like this:
https://your_company.bitrix24.ru/rest/1/xxxxxxxxxxxxxx/im.message.add.json?DIALOG_ID=chat485
And in the JSON Payload template field you can insert something like:
The MESSAGE parameter is required because in bitrrix24 api it is the text of the message.
Beta Was this translation helpful? Give feedback.
All reactions