Fixed a bug in adding YouTube videos to the database.
This commit is contained in:
parent
e1224d9dee
commit
6180221fe6
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue