diff --git a/README.md b/README.md index 26d015b..3432e53 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ Emits `message` when a message arrives. | --- | --- | --- | --- | | token | String | | Bot Token | | [options] | Object | | | -| [options.polling] | Boolean | Object | false | Set true to enable polling or set options | +| [options.polling] | Boolean | Object | false | Set true to enable polling or set options. If a WebHook has been set, it will be deleted automatically. | | [options.polling.timeout] | String | Number | 10 | Timeout in seconds for long polling | | [options.polling.interval] | String | Number | 300 | Interval between requests in miliseconds | | [options.polling.autoStart] | Boolean | true | Start polling immediately | diff --git a/src/telegram.js b/src/telegram.js index 6476251..36851de 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -41,7 +41,8 @@ class TelegramBot extends EventEmitter { * @constructor * @param {String} token Bot Token * @param {Object} [options] - * @param {Boolean|Object} [options.polling=false] Set true to enable polling or set options + * @param {Boolean|Object} [options.polling=false] Set true to enable polling or set options. + * If a WebHook has been set, it will be deleted automatically. * @param {String|Number} [options.polling.timeout=10] Timeout in seconds for long polling * @param {String|Number} [options.polling.interval=300] Interval between requests in miliseconds * @param {Boolean} [options.polling.autoStart=true] Start polling immediately