mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Update ytdl_download_new.py
This commit is contained in:
parent
e323e422cd
commit
ee6fd74c3f
1 changed files with 2 additions and 3 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue