From c704ab33d8b65ccaa5aeb2c54fb57eb6a2ddf9cf Mon Sep 17 00:00:00 2001 From: yago Date: Mon, 27 Jul 2015 00:00:55 +0200 Subject: [PATCH] constructor options doc. --- src/telegram.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/telegram.js b/src/telegram.js index 5e7cb05..5b9b1c5 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -22,9 +22,10 @@ var requestPromise = Promise.promisify(request); * @constructor * @param {String} token Bot Token * @param {Object} [options] - * @param {Boolean|Object} [options.polling=false] Set true to enable polling + * @param {Boolean|Object} [options.polling=false] Set true to enable polling or set options * @param {String|Number} [options.polling.timeout=4] Polling time - * @param {Boolean|Object} [options.webHook=false] Set true to enable WebHook + * @param {String|Number} [options.polling.interval=2000] Interval between requests in miliseconds + * @param {Boolean|Object} [options.webHook=false] Set true to enable WebHook or set options * @param {String} [options.webHook.key] PEM private key to webHook server * @param {String} [options.webHook.cert] PEM certificate key to webHook server * @see https://core.telegram.org/bots/api