• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Chat.php
  • Класс: BitrixImV2Chat
  • Вызов: Chat::sendEventRead
protected function sendEventRead(int $startId, int $endId, int $counter, bool $byEvent): void
{
	foreach (GetModuleEvents("im", "OnAfterChatRead", true) as $arEvent)
	{
		ExecuteModuleEventEx($arEvent, array(Array(
			'CHAT_ID' => $this->chatId,
			'CHAT_ENTITY_TYPE' => $this->getEntityType(),
			'CHAT_ENTITY_ID' => $this->getEntityId(),
			'START_ID' => $startId,
			'END_ID' => $endId,
			'COUNT' => $counter,
			'USER_ID' => $this->getContext()->getUserId(),
			'BY_EVENT' => $byEvent
		)));
	}
}