Skip to content

Commit 834e5ca

Browse files
committed
MAX_RETRIES set to 3 both for sync/async
1 parent 1a07f98 commit 834e5ca

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎telebot/apihelper.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _get_multipart_header_formatter(urllib3_fields):
5353

5454
RETRY_ON_ERROR = False
5555
RETRY_TIMEOUT = 2
56-
MAX_RETRIES = 15
56+
MAX_RETRIES = 3
5757
RETRY_ENGINE = 1
5858

5959
CUSTOM_SERIALIZER = None

‎telebot/asyncio_helper.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
REQUEST_TIMEOUT = 300
2828
RETRY_ON_ERROR = False
2929
RETRY_TIMEOUT = 2
30-
MAX_RETRIES = 15
30+
MAX_RETRIES = 3
3131

3232
REQUEST_LIMIT = 50
3333

0 commit comments

Comments
 (0)