Метод onCommandAdd

public static

Сигнатура метода

public static function onCommandAdd($messageId, $messageFields): bool

Возвращает: bool

Описание

Handles the "discuss report" keyboard command: the clicking manager opens the report discussion. The report id comes from COMMAND_PARAMS and the actor from FROM_USER_ID; membership is re-checked server-side by the timeman domain service (COMMAND_PARAMS is not trusted). On success the clicking manager's active client is asked to auto-open the freshly resolved discussion chat through the im pull facade; the second participant is not notified here.

Параметры

2
Имя Тип По умолчанию Флаги
$messageId — —
—
$messageFields — —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/integration/imbot/bizprocbot.php
Расположение метода в файле
Строки 333–385

Исходный код

PHP