hi! I'm trying to use telegram-node-bot
I have a question though, I want to set a timeout and do some action every X seconds.
Right now I only have 1 worker but if I do something like this:
function a() {
console.log("callback")
}
setInterval(a, 1 * 1000);I see the output twice every second.
I just need the function to be called once, because I need to send some messages if some condition happens