- Модуль: imopenlines
- Путь к файлу: ~/bitrix/modules/imopenlines/lib/session.php
- Класс: BitrixImOpenLinesSession
- Вызов: Session::sendMessageNoAnswer
public function sendMessageNoAnswer()
{
$result = false;
if ($this->config['NO_ANSWER_RULE'] == Session::RULE_TEXT && $this->session['SEND_NO_ANSWER_TEXT'] != 'Y' && $this->isEnableSendSystemMessage())
{
Im::addMessage([
"TO_CHAT_ID" => $this->session['CHAT_ID'],
"MESSAGE" => $this->config['NO_ANSWER_TEXT'],
"SYSTEM" => 'Y',
"IMPORTANT_CONNECTOR" => 'Y',
"NO_SESSION_OL" => 'Y',
"PARAMS" => [
"CLASS" => "bx-messenger-content-item-ol-output",
"IMOL_FORM" => "offline",
"TYPE" => "lines",
"COMPONENT_ID" => "bx-imopenlines-message",
]
]);
}
if ($this->session['SEND_NO_ANSWER_TEXT'] != 'Y')
{
$this->update(['SEND_NO_ANSWER_TEXT' => 'Y', 'WAIT_ACTION' => 'Y']);
}
else
{
$this->update(['SEND_NO_ANSWER_TEXT' => 'Y']);
}
Debug::addSession($this, __METHOD__, ['result' => $result]);
return $result;
}