• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message.php
  • Класс: BitrixImV2Message
  • Вызов: Message::getContextTag
protected function getContextTag(): string
{
	$chat = $this->getChat();

	if ($chat instanceof ImV2ChatPrivateChat)
	{
		$userIds = $chat->getRelations()->getUserIds();
		$implodeUserIds = implode(':', $userIds);

		return "#{$implodeUserIds}/{$this->getMessageId()}";
	}

	return "#{$chat->getDialogId()}/{$this->getMessageId()}";
}