nickoala / telepot

Python framework for Telegram Bot API
MIT License
2.42k stars 474 forks source link

schedule function in telepot #411

Open hyperdesignbot opened 6 years ago

hyperdesignbot commented 6 years ago

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

codingsett commented 6 years ago

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

javadfarah commented 6 years ago

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