add latest video command
This commit is contained in:
parent
268e569d76
commit
546aa93b7e
|
@ -45,5 +45,11 @@ def sw(update, ctx):
|
||||||
sw_handler = CommandHandler('sw', sw)
|
sw_handler = CommandHandler('sw', sw)
|
||||||
dispatcher.add_handler(sw_handler)
|
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()
|
updater.start_polling()
|
Loading…
Reference in New Issue
Block a user