2
0
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:
Conor Fennell
2016-06-21 10:48:05 +01:00
parent 335a5045d8
commit 96adb918c1
4 changed files with 50 additions and 1 deletions

View File

@@ -489,4 +489,10 @@ Register a reply to wait for a message response.
| messageId | <code>Number</code> &#124; <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
* * *