Метод getBotIdByUserId

public

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

public function getBotIdByUserId(int $userId): ?int

Возвращает: ?int

Описание

Returns the bot user ID for the day plan AI agent where the given user participates as a tracked user. Looks for the most recently activated template originating from bitrix_ai_day_planner.

Параметры

1
Имя Тип По умолчанию Флаги
$userId int —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Public/Provider/WorkflowTemplate/DayPlanBotProvider.php
Расположение метода в файле
Строки 20–65

Исходный код

PHP