2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-29 13:27:44 +00:00

[docs] Add link to docs for more information

This commit is contained in:
GochoMugo 2016-11-21 12:34:29 +03:00
parent afd2373351
commit 2ff2716ca2
No known key found for this signature in database
GPG Key ID: 7B6A01CB57AA39E4
2 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,7 @@ Emits `message` when a message arrives.
| [options.webHook.key] | <code>String</code> | | PEM private key to webHook server. |
| [options.webHook.cert] | <code>String</code> | | PEM certificate (public) to webHook server. |
| [options.onlyFirstMatch] | <code>Boolean</code> | <code>false</code> | Set to true to stop after first match. Otherwise, all regexps are executed |
| [options.request] | <code>Object</code> | | Options which will be added for all requests to telegram api. See https://github.com/request/request#requestoptions-callback for more information. |
<a name="TelegramBot+stopPolling"></a>

View File

@ -43,6 +43,7 @@ class TelegramBot extends EventEmitter {
* @param {String} [options.webHook.cert] PEM certificate (public) to webHook server.
* @param {Boolean} [options.onlyFirstMatch=false] Set to true to stop after first match. Otherwise, all regexps are executed
* @param {Object} [options.request] Options which will be added for all requests to telegram api.
* See https://github.com/request/request#requestoptions-callback for more information.
* @see https://core.telegram.org/bots/api
*/
constructor(token, options = {}) {