serilog-contrib / Serilog.Sinks.Telegram.Alternative

Serilog.Sinks.Telegram.Alternative is a library to save logging information from Serilog to Telegram.
MIT License
36 stars 12 forks source link

Use Web Proxy for Telegram requests #30

Closed Azaferany closed 2 years ago

Azaferany commented 2 years ago

in order to use telegram api we should use Web Proxy but in this state there is no way to config that

in current state HttpClient create at this state ( private readonly HttpClient httpClient = new();)

Azaferany commented 2 years ago

i think would be nice to expose HttpClient as option just like https://github.com/TelegramBots/Telegram.Bot/blob/ad9dfc27e5df9b37a6f4a465e2eb15d5a42a185b/src/Telegram.Bot/TelegramBotClient.cs#L64

SeppPenner commented 2 years ago

Fixed by https://github.com/serilog-contrib/Serilog.Sinks.Telegram.Alternative/pull/31.