Skip to content

Commit 3a25520

Browse files
committed
- resharper
1 parent d117a55 commit 3a25520

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Botticelli.Framework.Telegram/Decorators/TelegramClientDecorator.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System.Net;
2-
using Polly;
3-
using Polly.Retry;
4-
using Telegram.Bot;
1+
using Telegram.Bot;
52
using Telegram.Bot.Args;
63
using Telegram.Bot.Exceptions;
74
using Telegram.Bot.Requests.Abstractions;
@@ -37,7 +34,7 @@ public async Task<TResponse> SendRequest<TResponse>(IRequest<TResponse> request,
3734
{
3835
if (_throttler != null)
3936
return await _throttler.Throttle(async () => await _innerClient?.SendRequest(request, cancellationToken)!,
40-
cancellationToken);
37+
cancellationToken);
4138

4239
return await _innerClient?.SendRequest(request, cancellationToken)!;
4340
}
@@ -90,10 +87,10 @@ public async Task DownloadFile(string filePath,
9087
throw new NotImplementedException();
9188
}
9289

93-
public bool LocalBotServer { get; }
94-
public long BotId { get; }
90+
public bool LocalBotServer { get; set; } = false;
91+
public long BotId { get; set; } = -1;
9592
public TimeSpan Timeout { get; set; }
96-
public IExceptionParser? ExceptionsParser { get; set; }
93+
public IExceptionParser ExceptionsParser { get; set; } = new DefaultExceptionParser();
9794
public event AsyncEventHandler<ApiRequestEventArgs>? OnMakingApiRequest;
9895
public event AsyncEventHandler<ApiResponseEventArgs>? OnApiResponseReceived;
9996

0 commit comments

Comments
 (0)