You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
When used with ASP.NET Core 2.0 and ASPNETCORE_ENVIRONMENT is set to Development and long polling mode is used UseTelegramBotLongPolling throws this exception.
Creating explicit scope inside extension methods (UseTelegramBotWebhook, etc) and passing scoped ServiceProvider to FindBotManager helps but I don't understand why. When used with webhook everything works fine and no exception is thrown.
The text was updated successfully, but these errors were encountered:
When used with ASP.NET Core 2.0 and
ASPNETCORE_ENVIRONMENT
is set toDevelopment
and long polling mode is usedUseTelegramBotLongPolling
throws this exception.Creating explicit scope inside extension methods (
UseTelegramBotWebhook
, etc) and passing scoped ServiceProvider toFindBotManager
helps but I don't understand why. When used with webhook everything works fine and no exception is thrown.The text was updated successfully, but these errors were encountered: