mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-31 06:16:07 +00:00
Create a stop method #81
This commit is contained in:
@@ -489,4 +489,10 @@ Register a reply to wait for a message response.
|
||||
| messageId | <code>Number</code> | <code>String</code> | The message id to be replied. |
|
||||
| callback | <code>function</code> | Callback will be called with the reply message. |
|
||||
|
||||
### telegramBot.stopPolling() => Promise
|
||||
Stops polling after the last polling request resolves.
|
||||
|
||||
**Kind**: instance method of <code>[TelegramBot](#TelegramBot)</code>
|
||||
**Returns**: <code>Promise</code> - The resolved promise for the last poll request
|
||||
|
||||
* * *
|
||||
|
Reference in New Issue
Block a user