mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-09 13:04:51 +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,
|
delete_media=True,
|
||||||
) as ytdl:
|
) as ytdl:
|
||||||
upload_key = await ytdl.download(cq.message.reply_to_message.command[1], uid, format_, cq, True, 3)
|
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:
|
else:
|
||||||
uid = callback[2]
|
uid = callback[2]
|
||||||
type_ = callback[3]
|
type_ = callback[3]
|
||||||
|
|
@ -156,8 +156,7 @@ async def ytdl_gendl_callback(_, cq: CallbackQuery):
|
||||||
True,
|
True,
|
||||||
3,
|
3,
|
||||||
)
|
)
|
||||||
LOGGER.info(upload_key)
|
await ytdl.upload(app, upload_key[0], format_, cq, True)
|
||||||
await ytdl.upload(app, upload_key, format_, cq, True)
|
|
||||||
|
|
||||||
|
|
||||||
@app.on_callback_query(filters.regex(r"^ytdl_scroll"))
|
@app.on_callback_query(filters.regex(r"^ytdl_scroll"))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue