add latest video command

This commit is contained in:
Xaloc 2023-03-24 18:13:49 +01:00
parent 268e569d76
commit 546aa93b7e

View File

@ -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()