From 546aa93b7e8d4b388700d1435a9bb00c2e005435 Mon Sep 17 00:00:00 2001 From: Xaloc Date: Fri, 24 Mar 2023 18:13:49 +0100 Subject: [PATCH] add latest video command --- auroraBot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/auroraBot.py b/auroraBot.py index 8db4ee7..2faf26c 100755 --- a/auroraBot.py +++ b/auroraBot.py @@ -45,5 +45,11 @@ def sw(update, ctx): sw_handler = CommandHandler('sw', sw) dispatcher.add_handler(sw_handler) +def vid(update, ctx): + num = datetime.now().timestamp() + message = f'https://www.irf.se/alis/allsky/krn/latest_movie.mp4?{num}' + ctx.bot.send_message(chat_id=update.effective_chat.id, text=message) +vid_handler = CommandHandler('video', vid) +dispatcher.add_handler(vid_handler) updater.start_polling() \ No newline at end of file