1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Sender

Открытые статические члены

static hasFileInLastMessages (File $file, int $chatId, int $messageInterval=10)
static sendFileToChat (File $file, int $chatId, string $text, $params=[], $userId=null, $fileSource=self::SOURCE_DEFAULT)
static sendExistingFileToChat (File $file, int $chatId, string $text, $params=[], int $userId)

Поля данных

const SOURCE_DEFAULT = 'default'
const SOURCE_CALL_RECORDING = 'call-recording'
const SOURCE_CALL_DOCUMENT = 'call-document'

Подробное описание

См. определение в файле sender.php строка 16

Методы

◆ hasFileInLastMessages()

hasFileInLastMessages ( File $file,
int $chatId,
int $messageInterval = 10 )
static
Аргументы
File$file
int$chatId
int$messageInterval
Возвращает
bool

См. определение в файле sender.php строка 43

◆ sendExistingFileToChat()

sendExistingFileToChat ( File $file,
int $chatId,
string $text,
$params = [],
int $userId )
static

Send message with file from chat storage to chat

Аргументы
File$file
int$chatId
string$text
array$params
int$userId
Возвращает
Result
Исключения

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

См. определение в файле sender.php строка 137

◆ sendFileToChat()

sendFileToChat ( File $file,
int $chatId,
string $text,
$params = [],
$userId = null,
$fileSource = self::SOURCE_DEFAULT )
static

Upload file to chat storage and send message with it

Аргументы
File$file
int$chatId
string$text
array$params
null$userId
string$fileSource
Возвращает
Result

См. определение в файле sender.php строка 88

Поля

◆ SOURCE_CALL_DOCUMENT

const SOURCE_CALL_DOCUMENT = 'call-document'

См. определение в файле sender.php строка 20

◆ SOURCE_CALL_RECORDING

const SOURCE_CALL_RECORDING = 'call-recording'

См. определение в файле sender.php строка 19

◆ SOURCE_DEFAULT

const SOURCE_DEFAULT = 'default'

См. определение в файле sender.php строка 18


Объявления и описания членов класса находятся в файле: