From 10a63e59081816a512267580bd6f00786129942b Mon Sep 17 00:00:00 2001 From: Alexey Bannov Date: Thu, 15 Jun 2023 16:57:16 +0300 Subject: [PATCH] telegram: removed deprecated dll --- common/ASC.Core.Common/ASC.Core.Common.csproj | 1 - .../services/ASC.TelegramService/ASC.TelegramService.csproj | 4 ---- common/services/ASC.TelegramService/TelegramHandler.cs | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/common/ASC.Core.Common/ASC.Core.Common.csproj b/common/ASC.Core.Common/ASC.Core.Common.csproj index 26881c614f..1d0a2f864f 100644 --- a/common/ASC.Core.Common/ASC.Core.Common.csproj +++ b/common/ASC.Core.Common/ASC.Core.Common.csproj @@ -63,7 +63,6 @@ - diff --git a/common/services/ASC.TelegramService/ASC.TelegramService.csproj b/common/services/ASC.TelegramService/ASC.TelegramService.csproj index 6c1041f609..0c62255a4f 100644 --- a/common/services/ASC.TelegramService/ASC.TelegramService.csproj +++ b/common/services/ASC.TelegramService/ASC.TelegramService.csproj @@ -23,8 +23,4 @@ - - - - diff --git a/common/services/ASC.TelegramService/TelegramHandler.cs b/common/services/ASC.TelegramService/TelegramHandler.cs index 072d5d376c..9505701bcb 100644 --- a/common/services/ASC.TelegramService/TelegramHandler.cs +++ b/common/services/ASC.TelegramService/TelegramHandler.cs @@ -188,7 +188,7 @@ public class TelegramHandler var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cts.Token, cancellationToken); client.StartReceiving(updateHandler: (botClient, exception, cancellationToken) => HandleUpdateAsync(botClient, exception, cancellationToken, tenantId), - errorHandler: HandleErrorAsync, + pollingErrorHandler: HandleErrorAsync, cancellationToken: linkedCts.Token); }