mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 03:45:23 +00:00
send sub video #55
This commit is contained in:
parent
f0c7a60081
commit
19e4f32196
@ -302,8 +302,8 @@ def periodic_sub_check():
|
|||||||
if video_url:
|
if video_url:
|
||||||
logging.info(f"periodic update:{video_url} - {uids}")
|
logging.info(f"periodic update:{video_url} - {uids}")
|
||||||
for uid in uids:
|
for uid in uids:
|
||||||
# TODO can we send and forward?
|
bot_msg = app.send_message(uid, f"{video_url} is downloading...", disable_web_page_preview=True)
|
||||||
app.send_message(uid, video_url)
|
ytdl_download_entrance(bot_msg, app, video_url)
|
||||||
time.sleep(random.random())
|
time.sleep(random.random())
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user