send sub video #55

This commit is contained in:
BennyThink 2022-02-09 12:52:51 +08:00
parent f0c7a60081
commit 19e4f32196
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481

View File

@ -302,8 +302,8 @@ def periodic_sub_check():
if video_url:
logging.info(f"periodic update:{video_url} - {uids}")
for uid in uids:
# TODO can we send and forward?
app.send_message(uid, video_url)
bot_msg = app.send_message(uid, f"{video_url} is downloading...", disable_web_page_preview=True)
ytdl_download_entrance(bot_msg, app, video_url)
time.sleep(random.random())