Feature:
We can now pass a custom API Base URL to
be used during making HTTP requests. This is useful in
proxying requests, or running tests.
In particular, this library is (almost) ready to
be used with PWRTelegram API (http://pwrtelegram.xyz/).
| [options.onlyFirstMatch] | <code>Boolean</code> | <code>false</code> | Set to true to stop after first match. Otherwise, all regexps are executed |
| [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. |
| [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. |
| [options.baseApiUrl] | <code>String</code> | <code>https://api.telegram.org</code> | API Base URl; useful for proxying and testing |
*@param{Object}[options.request]Optionswhichwillbeaddedforallrequeststotelegramapi.Seehttps://github.com/request/request#requestoptions-callback for more information.
*@param{Object}[options.request]Optionswhichwillbeaddedforallrequeststotelegramapi.Seehttps://github.com/request/request#requestoptions-callback for more information.
*@param{String}[options.baseApiUrl=https://api.telegram.org] API Base URl; useful for proxying and testing