diff --git a/doc/api.md b/doc/api.md index b791ba49..757f70d9 100644 --- a/doc/api.md +++ b/doc/api.md @@ -80,6 +80,8 @@ TelegramBot * [.removeTextListener(regexp)](#TelegramBot+removeTextListener) ⇒ Object * [.onReplyToMessage(chatId, messageId, callback)](#TelegramBot+onReplyToMessage) ⇒ Number * [.removeReplyListener(replyListenerId)](#TelegramBot+removeReplyListener) ⇒ Object + * [.clearTextListeners()](#TelegramBot+clearTextListeners) + * [.clearReplyListeners()](#TelegramBot+clearReplyListeners) * [.getChat(chatId, [options])](#TelegramBot+getChat) ⇒ Promise * [.getChatAdministrators(chatId, [options])](#TelegramBot+getChatAdministrators) ⇒ Promise * [.getChatMembersCount(chatId, [options])](#TelegramBot+getChatMembersCount) ⇒ Promise @@ -1185,6 +1187,20 @@ Removes a reply that has been prev. registered for a message response. | --- | --- | --- | | replyListenerId | Number | The ID of the reply listener. | + + +### telegramBot.clearTextListeners() +Remove all listeners registered with `onText()`. + +**Kind**: instance method of [TelegramBot](#TelegramBot) + + + +### telegramBot.clearReplyListeners() +Removes all replies that have been previously registered for a message response. + +**Kind**: instance method of [TelegramBot](#TelegramBot) + ### telegramBot.getChat(chatId, [options]) ⇒ Promise