From b2a4e26945cbed36f1490c47a4de304fde9a482b Mon Sep 17 00:00:00 2001 From: Yago Date: Sat, 30 Jan 2016 18:06:04 +0100 Subject: [PATCH] Updated doc --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 7735f5e..3e9ef4c 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,7 @@ TelegramBot * [.getFileLink(fileId)](#TelegramBot+getFileLink) ⇒ Promise * [.downloadFile(fileId, downloadDir)](#TelegramBot+downloadFile) ⇒ Promise * [.onText(regexp, callback)](#TelegramBot+onText) + * [.onReplyToMessage(messageId, callback)](#TelegramBot+onReplyToMessage) ### new TelegramBot(token, [options]) @@ -341,4 +342,15 @@ Register a RegExp to test against an incomming text message. | regexp | RegExp | RegExp to be executed with `exec`. | | callback | function | Callback will be called with 2 parameters, the `msg` and the result of executing `regexp.exec` on message text. | + +### telegramBot.onReplyToMessage(messageId, callback) +Register a reply to wait for a message response. + +**Kind**: instance method of [TelegramBot](#TelegramBot) + +| Param | Type | Description | +| --- | --- | --- | +| messageId | Number | String | The ID of the message to be replied | +| callback | function | Callback will be called with the reply message. | + * * *