Node-telegram-bot-api: Create a stop method

Created on 1 Mar 2016  路  2Comments  路  Source: yagop/node-telegram-bot-api

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.

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?

All 2 comments

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().

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kenanchristian picture kenanchristian  路  4Comments

FerX picture FerX  路  4Comments

lenny76 picture lenny76  路  3Comments

alikhil picture alikhil  路  3Comments

Dohoon-Kim picture Dohoon-Kim  路  3Comments