Update ytdl_download_new.py

This commit is contained in:
yasirarism 2023-02-19 16:13:21 +07:00 committed by GitHub
parent e323e422cd
commit ee6fd74c3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,7 +137,7 @@ async def ytdl_gendl_callback(_, cq: CallbackQuery):
delete_media=True,
) as ytdl:
upload_key = await ytdl.download(cq.message.reply_to_message.command[1], uid, format_, cq, True, 3)
await ytdl.upload(app, upload_key, format_, cq, True)
await ytdl.upload(app, upload_key[0], format_, cq, True)
else:
uid = callback[2]
type_ = callback[3]
@ -156,8 +156,7 @@ async def ytdl_gendl_callback(_, cq: CallbackQuery):
True,
3,
)
LOGGER.info(upload_key)
await ytdl.upload(app, upload_key, format_, cq, True)
await ytdl.upload(app, upload_key[0], format_, cq, True)
@app.on_callback_query(filters.regex(r"^ytdl_scroll"))