mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-23 02:17:16 +00:00
doc: add clear listener methods
This commit is contained in:
parent
ec7e61e041
commit
28cd62e355
16
doc/api.md
16
doc/api.md
@ -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>
|
||||
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user