X.Serilog.Sinks.Telegram
X.Serilog.Sinks.Telegram copied to clipboard
Method not found: 'Void Telegram.Bot.TelegramBotClient..ctor(System.String, System.Net.Http.HttpClient)'
trafficstars
Describe the bug
I used this lib to send logs to telegram.
logConfig = logConfig.WriteTo.TelegramCore(token, chatId, logLevelError);
To Reproduce Steps to reproduce the behavior:
- Start app with code
logConfig = logConfig
.WriteTo.TelegramCore(token, chatId, logLevelError);
- See error [17:15:36 ERR] Method not found: 'Void Telegram.Bot.TelegramBotClient..ctor(System.String, System.Net.Http.HttpClient)'.
Screenshots
Desktop (please complete the following information):
- OS: Win11
- Browser Chrome
Additional context if I use extended config (.WriteTo.Telegram), I also have this problem