• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/model/command.php
  • Класс: BitrixImModelCommandTable
  • Вызов: CommandTable::getBotId
static function getBotId(int $id): ?int
{
	$result = CommandTable::getById($id)->fetch();

	return $result['BOT_ID'] ?: null;
}