• Модуль: imbot
  • Путь к файлу: ~/bitrix/modules/imbot/lib/restservice.php
  • Класс: BitrixImBotRestService
  • Вызов: RestService::support24QuestionAdd
static function support24QuestionAdd($params, $offset, CRestServer $server)
{
	if (!self::validateRequest($params, $server))
	{
		return -1;
	}

	$classSupport = self::detectSupportBot();

	$chatId = $classSupport::addSupportQuestion();

	if ($classSupport::hasError())
	{
		self::throwException($classSupport::getError());
	}

	return $chatId;
}