• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/operator.php
  • Класс: BitrixImOpenLinesOperator
  • Вызов: Operator::answer
public function answer(): bool
{
	$result = false;

	$access = $this->checkAccess();
	if ($access['RESULT'])
	{
		$chat = new Chat($this->chatId);
		$resultAnswer = $chat->answer($this->userId);

		if ($resultAnswer->isSuccess())
		{
			$result = true;
		}
	}

	return $result;
}