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