Skip to content

Release 1.0.30

Choose a tag to compare

@bvdcode bvdcode released this 21 Feb 08:34
· 14 commits to main since this release
Add custom HttpClient support to BotConfiguration

Introduce a new property `HttpClient` in the `BotConfiguration` class, allowing for a custom `HttpClient` to be set. If not set, a default `HttpClient` will be used.

Update `BotBuilder` to use this custom `HttpClient` when creating an instance of `TelegramBotClient`. If the `HttpClient` is not provided in the `BotConfiguration`, the default behavior remains unchanged.

Include a `using` directive for `System.Net.Http` in `BotConfiguration` to support the new `HttpClient` property.