Create a stop method to stop the bot. This could be useful in case of error and we need to stop the polling to save resources.
I was able to stop it with this line bot._polling.abort = true; but I don't think it is the ideal solution.
I saw PR #95 for this issue, but not merged for long time. I need this feature too, it's really helpful. Dear @yagop when will we see this PR (#95) merged?
PR #95 was merged in. Fixes this issue.
bot.stopPolling()
Documentation on TelegramBot#stopPolling().
Most helpful comment
I saw PR #95 for this issue, but not merged for long time. I need this feature too, it's really helpful. Dear @yagop when will we see this PR (#95) merged?