Skip to content

Method not found: 'Void Telegram.Bot.TelegramBotClient..ctor(System.String, System.Net.Http.HttpClient)' #46

@onatsko

Description

@onatsko

Describe the bug
After update to .NET 9 and Telegram.Bot to 22.1.0
get error

System.MissingMethodException: Method not found: 'Void Telegram.Bot.TelegramBotClient..ctor(System.String, System.Net.Http.HttpClient)'.
   at X.Serilog.Sinks.Telegram.TelegramSink..ctor(ChannelWriter`1 channelWriter, ILogsQueueAccessor logsQueueAccessor, TelegramSinkConfiguration sinkConfiguration, IMessageFormatter messageFormatter)
   at X.Serilog.Sinks.Telegram.Extensions.LoggerConfigurationTelegramExtensions.Telegram(LoggerSinkConfiguration loggerConfiguration, Action`1 configureAction, IMessageFormatter messageFormatter, LogEventLevel restrictedToMinimumLevel)

moved from old repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions