retry failed requests
Feature Request
Proprty on IBotClient to retry requests that fail due to throttling on tg server (429 too many requests).
Could be
myrequest.RetryOptions = new RetryOptions(count: 3, everySecs: 7)
I think it should be a property on request base class to allow per request setting. And it means that we need to implement all Bot API methods in terms of requests and responses first.
I think it should be a property on request base class to allow per request setting. And it means that we need to implement all Bot API methods in terms of requests and responses first.
What about now? 🗻
What about now? 😉
To correct handling it with polly and retry policy ExceptionsParser.Parse should be done in HttpClient DelegateHandler, so in my policy I have access to already parsed ApiResponse and/or ApiException (to get specified timeout). Currently, I need to parse it manually by myself.