add video

This commit is contained in:
lendry
2026-07-07 12:46:43 +03:00
parent 911e76f232
commit 1bd95fa99e
15 changed files with 626 additions and 42 deletions

View File

@@ -70,9 +70,13 @@ export async function uploadChatMediaBatch(params: {
let messageContent: string | undefined =
index === 0 && caption?.trim()
? caption.trim()
: messageType === 'FILE'
? item.file.name
: undefined;
: messageType === 'VIDEO'
? 'Видео'
: messageType === 'VIDEO_NOTE'
? 'Видеосообщение'
: messageType === 'FILE'
? item.file.name
: undefined;
let isEncrypted = false;
if (isE2E) {