From 61e3652edf88d5761038b5f350aa68e151b42257 Mon Sep 17 00:00:00 2001 From: Xilosof Date: Sun, 14 Mar 2021 21:43:07 +0300 Subject: [PATCH] Add MaxNumberOfRetries setting. Indicates the maximum number of times a request that received error 429 will be sent again after a timeout until it receives code 200 or an error code not equal to 429. --- TelegramBotBase/Enums/eSettings.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/TelegramBotBase/Enums/eSettings.cs b/TelegramBotBase/Enums/eSettings.cs index e425650..7e55710 100644 --- a/TelegramBotBase/Enums/eSettings.cs +++ b/TelegramBotBase/Enums/eSettings.cs @@ -27,9 +27,14 @@ namespace TelegramBotBase.Enums /// /// Does stick to the console event handler and saves all sessions on exit. /// - SaveSessionsOnConsoleExit = 4 + SaveSessionsOnConsoleExit = 4, + /// + /// Indicates the maximum number of times a request that received error + /// 429 will be sent again after a timeout until it receives code 200 or an error code not equal to 429. + /// + MaxNumberOfRetries = 5, } }