telegram: removed deprecated dll
This commit is contained in:
parent
d03e4ef330
commit
10a63e5908
@ -63,7 +63,6 @@
|
||||
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0" />
|
||||
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
|
||||
<PackageReference Include="Telegram.Bot" Version="18.0.0" />
|
||||
<PackageReference Include="Telegram.Bot.Extensions.Polling" Version="1.0.2" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Protobuf Include="protos\create_client_proto.proto" />
|
||||
|
@ -23,8 +23,4 @@
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Telegram.Bot.Extensions.Polling" Version="1.0.2" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user