itd-api / ChatUploadOptions
Interface: ChatUploadOptions
Defined in: models/chats.ts:86
Параметры файла и метаданные вложения мессенджера.
Properties
contentType?
ts
optional contentType?: string;Defined in: models/chats.ts:88
durationMs?
ts
optional durationMs?: number;Defined in: models/chats.ts:92
Длительность аудио или видео, мс.
filename?
ts
optional filename?: string;Defined in: models/chats.ts:87
height?
ts
optional height?: number;Defined in: models/chats.ts:90
onProgress?
ts
optional onProgress?: (uploaded, total) => void;Defined in: models/chats.ts:100
Вызывается после отправки каждой части. Оба значения в байтах.
Parameters
uploaded
number
total
number
Returns
void
thumb?
ts
optional thumb?: object;Defined in: models/chats.ts:98
Готовое JPEG-превью в Base64 и его размеры в пикселях.
bytes
ts
bytes: string;height
ts
height: number;width
ts
width: number;thumbhash?
ts
optional thumbhash?: string;Defined in: models/chats.ts:96
ThumbHash в Base64.
waveform?
ts
optional waveform?: string;Defined in: models/chats.ts:94
Закодированная форма волны голосового сообщения.
width?
ts
optional width?: number;Defined in: models/chats.ts:89