Метод resolveChatByDialogId

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 58–92
~/bitrix/modulesim/lib/V2/Integration/AiAssistant/Tools/Support/ImToolContext.php

Исходный код

PHP
public

Сигнатура метода

public function resolveChatByDialogId(int $userId, ?string $dialogId): Chat

Возвращает: Chat

Описание

Resolves an existing chat by dialogId without side effects: unlike Dialog::getChatId, a numeric (private) dialogId never creates a missing private chat here. Tools that must create one (send_message) do it themselves.

Параметры

2
Имя Тип По умолчанию Флаги
$userId int -
-
$dialogId ?string -
-