Skip to content

Commit

Permalink
doc: add clear listener methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kamikazechaser committed Dec 10, 2020
1 parent ec7e61e commit 28cd62e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ TelegramBot
* [.removeTextListener(regexp)](#TelegramBot+removeTextListener) ⇒ <code>Object</code>
* [.onReplyToMessage(chatId, messageId, callback)](#TelegramBot+onReplyToMessage) ⇒ <code>Number</code>
* [.removeReplyListener(replyListenerId)](#TelegramBot+removeReplyListener) ⇒ <code>Object</code>
* [.clearTextListeners()](#TelegramBot+clearTextListeners)
* [.clearReplyListeners()](#TelegramBot+clearReplyListeners)
* [.getChat(chatId, [options])](#TelegramBot+getChat) ⇒ <code>Promise</code>
* [.getChatAdministrators(chatId, [options])](#TelegramBot+getChatAdministrators) ⇒ <code>Promise</code>
* [.getChatMembersCount(chatId, [options])](#TelegramBot+getChatMembersCount) ⇒ <code>Promise</code>
Expand Down Expand Up @@ -1185,6 +1187,20 @@ Removes a reply that has been prev. registered for a message response.
| --- | --- | --- |
| replyListenerId | <code>Number</code> | The ID of the reply listener. |

<a name="TelegramBot+clearTextListeners"></a>

### telegramBot.clearTextListeners()
Remove all listeners registered with `onText()`.

**Kind**: instance method of [<code>TelegramBot</code>](#TelegramBot)

<a name="TelegramBot+clearReplyListeners"></a>

### telegramBot.clearReplyListeners()
Removes all replies that have been previously registered for a message response.

**Kind**: instance method of [<code>TelegramBot</code>](#TelegramBot)

<a name="TelegramBot+getChat"></a>

### telegramBot.getChat(chatId, [options]) ⇒ <code>Promise</code>
Expand Down

0 comments on commit 28cd62e

Please sign in to comment.