• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/ViewedService.php
  • Класс: BitrixImV2MessageViewedService
  • Вызов: ViewedService::__construct
public function __construct(?int $userId = null)
{
	if (isset($userId))
	{
		$context = new Context();
		$context->setUser($userId);
		$this->setContext($context);
	}
}