Telegram.Bot.Framework icon indicating copy to clipboard operation
Telegram.Bot.Framework copied to clipboard

ConfigurationException in development mode on ASP.NET Core 2.0

Open tuscen opened this issue 6 years ago • 0 comments

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.

tuscen avatar Dec 07 '17 00:12 tuscen