forked from mullwar/telebot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a socketTimeout option to timeout http requests mullwar#135 as by…
… lucdew
- Loading branch information
mrummuka
committed
Jun 16, 2020
1 parent
17f69db
commit fbc072a
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ const bot = new TeleBot({ | |
timeout: 0, // Optional. Update polling timeout (0 - short polling). | ||
limit: 100, // Optional. Limits the number of updates to be retrieved. | ||
retryTimeout: 5000, // Optional. Reconnecting timeout (in ms). | ||
socketTimeout: 30000, // Optional. Socket timeout (in ms). | ||
proxy: 'http://username:[email protected]:8080' // Optional. An HTTP proxy to be used. | ||
}, | ||
webhook: { // Optional. Use webhook instead of polling. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters