Added initialization of MaxNumberOfRetries setting
This commit is contained in:
@@ -72,6 +72,7 @@ namespace TelegramBotBase
|
|||||||
{
|
{
|
||||||
this.SystemSettings = new Dictionary<eSettings, uint>();
|
this.SystemSettings = new Dictionary<eSettings, uint>();
|
||||||
|
|
||||||
|
SetSetting(eSettings.MaxNumberOfRetries, 5);
|
||||||
SetSetting(eSettings.NavigationMaximum, 10);
|
SetSetting(eSettings.NavigationMaximum, 10);
|
||||||
SetSetting(eSettings.LogAllMessages, false);
|
SetSetting(eSettings.LogAllMessages, false);
|
||||||
SetSetting(eSettings.SkipAllMessages, false);
|
SetSetting(eSettings.SkipAllMessages, false);
|
||||||
@@ -177,6 +178,8 @@ namespace TelegramBotBase
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DeviceSession.MaxNumberOfRetries = this.GetSetting(eSettings.MaxNumberOfRetries, 5);
|
||||||
|
|
||||||
this.Client.TelegramClient.StartReceiving();
|
this.Client.TelegramClient.StartReceiving();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user