Метод getTranscribableFile
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
478–492
~/bitrix/modulesim/lib/V2/Integration/AI/TaskCreation/MultipleMessagesCreator.php
Исходный код
Сигнатура метода
private function getTranscribableFile(Message $message): ?FileItem
Возвращает:
?FileItem
Описание
A selected message is transcribable only when it is a voice note or a video note (same rule the CreatorFactory uses to route the single-message transcription flow). Such a message always carries exactly one file — its note. The isTranscribable() check carries the size/type limits the single flow enforces before transcription; files that fail it degrade to plain attachments instead of wasting an AI request.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$message
|
Message
|
-
|
-
|