- Модуль: imopenlines
- Путь к файлу: ~/bitrix/modules/imopenlines/lib/im.php
- Класс: BitrixImOpenLinesIm
- Вызов: Im::addCloseVoteMessage
static function addCloseVoteMessage($chatId, $timeLimitVote = 0)
{
$timeLimitVote = (int)$timeLimitVote;
$message = Loc::getMessage('IMOL_IM_CLOSE_VOTE_MESSAGE_NO_DAY');
if(
!empty($timeLimitVote) &&
$timeLimitVote > 0
)
{
$message = Loc::getMessage('IMOL_IM_CLOSE_VOTE_MESSAGE', ['#DAYS#' => FormatDate('ddiff', time() - $timeLimitVote)]);
}
return self::addMessage([
'TO_CHAT_ID' => $chatId,
'MESSAGE' => $message,
'SYSTEM' => 'Y',
'IMPORTANT_CONNECTOR' => 'Y',
'NO_SESSION_OL' => 'Y',
'RECENT_ADD' => 'N',
'PARAMS' => [
'CLASS' => 'bx-messenger-content-item-ol-output',
]
]);
}