From 2ff2716ca2938e2dfc37daae241d287e9d5d6e0d Mon Sep 17 00:00:00 2001 From: GochoMugo Date: Mon, 21 Nov 2016 12:34:29 +0300 Subject: [PATCH] [docs] Add link to docs for more information --- README.md | 1 + src/telegram.js | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 5469af9..ac0d829 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,7 @@ Emits `message` when a message arrives. | [options.webHook.key] | String | | PEM private key to webHook server. | | [options.webHook.cert] | String | | PEM certificate (public) to webHook server. | | [options.onlyFirstMatch] | Boolean | false | Set to true to stop after first match. Otherwise, all regexps are executed | +| [options.request] | Object | | Options which will be added for all requests to telegram api. See https://github.com/request/request#requestoptions-callback for more information. | diff --git a/src/telegram.js b/src/telegram.js index 516a0e6..665b4b2 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -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 = {}) {