diff --git a/TelegramBotBase/BotBase.cs b/TelegramBotBase/BotBase.cs index 74f2e52..9d9c354 100644 --- a/TelegramBotBase/BotBase.cs +++ b/TelegramBotBase/BotBase.cs @@ -72,6 +72,7 @@ namespace TelegramBotBase { this.SystemSettings = new Dictionary(); + SetSetting(eSettings.MaxNumberOfRetries, 5); SetSetting(eSettings.NavigationMaximum, 10); SetSetting(eSettings.LogAllMessages, false); SetSetting(eSettings.SkipAllMessages, false); @@ -177,6 +178,8 @@ namespace TelegramBotBase }); } + DeviceSession.MaxNumberOfRetries = this.GetSetting(eSettings.MaxNumberOfRetries, 5); + this.Client.TelegramClient.StartReceiving(); }