Make the UpdateRecevier not wait for each handler

This commit is contained in:
XSilverTH
2025-12-18 17:29:46 +03:30
parent e77894fde6
commit 6074ee83a1
+3 -2
View File
@@ -63,11 +63,12 @@ namespace Telegrator.Polling
try
{
request.Offset = update.Id + 1;
await updateHandler.HandleUpdateAsync(Client, update, cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
_ = updateHandler.HandleUpdateAsync(Client, update, cancellationToken);
}
catch (Exception exception2)
{
await updateHandler.HandleErrorAsync(Client, exception2, HandleErrorSource.HandleUpdateError, cancellationToken).ConfigureAwait(false);
await updateHandler.HandleErrorAsync(Client, exception2,
HandleErrorSource.HandleUpdateError, cancellationToken).ConfigureAwait(false);
}
}
}