Skip to content

Commit

Permalink
Update version 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenlagus committed Dec 2, 2024
1 parent afc8f18 commit 353b062
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Writerside/topics/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

Find here changelog for all releases though the years

## 8.0.0
1. Update Api version [8.0](https://core.telegram.org/bots/api-changelog#november-17-2024)
2. Adding new [Jetty Client](Client-Jetty.md)
3. Fix: #1434, #1438, #1441, #1443, #1444, #1459

## 7.11.0
1. Update Api version [7.11](https://core.telegram.org/bots/api-changelog#october-31-2024)
2. Fix: #1454
Expand Down
6 changes: 4 additions & 2 deletions Writerside/topics/Client-Jetty.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Jetty HTTP client
By default TelegramBotsApi perform HTTP requests using OkHttp library.
By default, TelegramBotsApi performs HTTP requests using OkHttp library.
If for some reason you don't want or can't use it, there is another implementation of `AbstractTelegramClient` that perform HTTP requests using Jetty HttpClient.
To switch from OkHttp to Jetty Client you have to use `telegrambots-client-jetty-adapter` instead of `telegrambots-client`:

Expand All @@ -10,7 +10,7 @@ To switch from OkHttp to Jetty Client you have to use `telegrambots-client-jetty
</dependency>
```

Now you can create an instance of `JettyTelegramClient` with one of provided constructors:
Now you can create an instance of `JettyTelegramClient` with one of constructors provided:
```java
JettyTelegramClient(ObjectMapper objectMapper, HttpClient client, String botToken, TelegramUrl telegramUrl);
JettyTelegramClient(HttpClient client, String botToken, TelegramUrl telegramUrl);
Expand All @@ -24,7 +24,9 @@ Simple usage:
// create telegram client instance with default HttpClient configuration
TelegramClient telegramClient = new JettyTelegramClient("TOKEN");
```

Advanced usage:

```java
// create fine-tuned Jetty HttpClient
QueuedThreadPool threadPool = new QueuedThreadPool(4);
Expand Down
2 changes: 1 addition & 1 deletion Writerside/v.list
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<var name="project_url" value="https://github.com/rubenlagus/TelegramBots"/>
<var name="tg_url" value="https://core.telegram.org/bots/api"/>
<var name="tg" value="Telegram Bots Api"/>
<var name="version" value="7.10.0" />
<var name="version" value="8.0.0" />
<var name="emoji_version" value="5.1.1" />
<var name="lettuce_version" value="6.3.2.RELEASE" />
<var name="spring_version" value="3.2.4" />
Expand Down

0 comments on commit 353b062

Please sign in to comment.