Fixed a bug in adding YouTube videos to the database.

This commit is contained in:
Sudo Space 2025-04-20 21:52:15 +03:30
parent e1224d9dee
commit 6180221fe6

View file

@ -101,7 +101,7 @@ async function handleYoutube(
caption, caption,
}); });
await addToArchive(url, { await addToArchive(key, {
chatId: file.chat.id.toString(), chatId: file.chat.id.toString(),
msgId: file.message_id, msgId: file.message_id,
}); });
@ -127,7 +127,7 @@ async function handleYoutube(
await removeFile(thumbnail); await removeFile(thumbnail);
await addToArchive(url, { await addToArchive(key, {
chatId: file.chat.id.toString(), chatId: file.chat.id.toString(),
msgId: file.message_id, msgId: file.message_id,
}); });