• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Entity/User/UserBot.php
  • Класс: BitrixImV2EntityUserUserBot
  • Вызов: UserBot::getCommands
public function getCommands(): array
{
	if (empty($this->commands))
	{
		$this->commands = (new Command($this->getId()))->toRestFormat();
	}

	return $this->commands;
}