Commit cca2ddf
committed
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.1 parent 1284be7 commit cca2ddf
File tree
2 files changed
+9
-2
lines changed- Sources/TelegramBot/Builders
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
0 commit comments