nickoala/telepot

schedule function in telepot

hyperdesignbot opened this issue · 2 comments

hello.
I want to use schedule function in my script.I want to run my function every 1 second.
When I use long polling in telepot , it(my function) run every 1 second finely. but when i deploy my script on vps and i use webserver and webhook in telepot, my function doesnt run.
please guide me.
thank you

I use multithreading when i want to schedule a function so that it doesnt affect the workflow of my bot.But i think telepot has a scheduler somewhere check the examples folder

@aminhyper
try schedule lib.
it's work like a charm:)