N
N
Nentra2021-09-27 16:34:00
Bitrix24
Nentra, 2021-09-27 16:34:00

How to get a chat ID in Bitrix24?

In Bitrix24, you can add a user to a group chat using the API
https://dev.1c-bitrix.ru/learning/course/?COURSE_I...

Question: How can I find out the "Chat ID" - where can I see it?
I did not find it in Bitrix24 itself.

$result = restCommand('imbot.chat.user.add', Array(

   'CHAT_ID' => 13 // Идентификатор чата
   'USERS' => Array(3,4) // Идентификаторы новых пользователей
   'BOT_ID' => 39, // Идентификатор чат-бота, от которого идет запрос. Можно не указывать, если чат-бот всего один

), $_REQUEST["auth"]);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nentra, 2021-09-28
@Nentra

https://helpdesk.bitrix24.ru/open/5504913/
Enter the command in the desired chat:

/getDialogId – получить идентификатор чата для внешних интеграций

A
Andrey Nikolaev, 2021-09-28
@gromdron

Question: How can I find out the "Chat ID" - where can I see it?

Through the im.chat.get method

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question