Skip to content
This repository was archived by the owner on Jan 1, 2022. It is now read-only.
This repository was archived by the owner on Jan 1, 2022. It is now read-only.

ConfigurationException in development mode on ASP.NET Core 2.0 #11

Open
@tuscen

Description

@tuscen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions