Skip to content

Commit 9203912

Browse files
committed
Api Version 9.2
1 parent 544886b commit 9203912

File tree

65 files changed

+1219
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1219
-51
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>org.telegram</groupId>
88
<artifactId>Bots</artifactId>
99
<packaging>pom</packaging>
10-
<version>9.1.0</version>
10+
<version>9.2.0</version>
1111

1212
<modules>
1313
<module>telegrambots-meta</module>
@@ -67,11 +67,11 @@
6767
<slf4j.version>2.0.12</slf4j.version>
6868
<lombok.version>1.18.34</lombok.version>
6969
<guava.version>33.2.1-jre</guava.version>
70-
<commons-lang.version>3.14.0</commons-lang.version>
70+
<commons-lang.version>3.18.0</commons-lang.version>
7171
<commons-io.version>2.16.1</commons-io.version>
7272
<okhttp.version>4.12.0</okhttp.version>
7373

74-
<junit.version>5.10.3</junit.version>
74+
<junit.version>5.12.2</junit.version>
7575
<mockito.version>5.12.0</mockito.version>
7676
<mockitojupiter.version>5.12.0</mockitojupiter.version>
7777
<awaitability.version>4.2.1</awaitability.version>

telegrambots-abilities/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.telegram</groupId>
99
<artifactId>Bots</artifactId>
10-
<version>9.1.0</version>
10+
<version>9.2.0</version>
1111
</parent>
1212

1313
<artifactId>telegrambots-abilities</artifactId>
@@ -93,12 +93,12 @@
9393
<dependency>
9494
<groupId>org.telegram</groupId>
9595
<artifactId>telegrambots-webhook</artifactId>
96-
<version>9.1.0</version>
96+
<version>9.2.0</version>
9797
</dependency>
9898
<dependency>
9999
<groupId>org.telegram</groupId>
100100
<artifactId>telegrambots-longpolling</artifactId>
101-
<version>9.1.0</version>
101+
<version>9.2.0</version>
102102
</dependency>
103103

104104
<dependency>

telegrambots-client-jetty-adapter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.telegram</groupId>
99
<artifactId>Bots</artifactId>
10-
<version>9.1.0</version>
10+
<version>9.2.0</version>
1111
</parent>
1212

1313
<name>Telegram Bots Client Jetty HttpClient adapter</name>

telegrambots-client-jetty-adapter/src/main/java/org/telegram/telegrambots/client/jetty/JettyTelegramClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ public CompletableFuture<List<Message>> executeAsync(SendMediaGroup sendMediaGro
349349
.addPart(SendMediaGroup.BUSINESS_CONNECTION_ID_FIELD, sendMediaGroup.getBusinessConnectionId())
350350
.addPart(SendMediaGroup.MESSAGE_EFFECT_ID_FIELD, sendMediaGroup.getMessageEffectId())
351351
.addPart(SendMediaGroup.ALLOW_PAID_BROADCAST_FIELD, sendMediaGroup.getAllowSendingWithoutReply())
352+
.addPart(SendMediaGroup.DIRECT_MESSAGES_TOPIC_ID_FIELD, sendMediaGroup.getDirectMessagesTopicId())
352353
.addJsonPart(SendMediaGroup.REPLY_MARKUP_FIELD, sendMediaGroup.getReplyMarkup())
353354
.addJsonPart(SendMediaGroup.REPLY_PARAMETERS_FIELD, sendMediaGroup.getReplyParameters());
354355

@@ -639,6 +640,8 @@ private <T extends Serializable, Method extends SendMediaBotMethod<T>> Completab
639640
.addPart(SendMediaBotMethod.PROTECT_CONTENT_FIELD, method.getProtectContent())
640641
.addPart(SendMediaBotMethod.ALLOW_SENDING_WITHOUT_REPLY_FIELD, method.getAllowSendingWithoutReply())
641642
.addPart(SendMediaBotMethod.MESSAGE_EFFECT_ID_FIELD, method.getMessageEffectId())
643+
.addPart(SendMediaBotMethod.DIRECT_MESSAGES_TOPIC_ID_FIELD, method.getDirectMessagesTopicId())
644+
.addPart(SendMediaBotMethod.SUGGESTED_POST_PARAMETERS_FIELD, method.getSuggestedPostParameters())
642645
.addJsonPart(SendMediaBotMethod.REPLY_PARAMETERS_FIELD, method.getReplyParameters())
643646
.addJsonPart(SendMediaBotMethod.REPLY_MARKUP_FIELD, method.getReplyMarkup());
644647

telegrambots-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.telegram</groupId>
99
<artifactId>Bots</artifactId>
10-
<version>9.1.0</version>
10+
<version>9.2.0</version>
1111
</parent>
1212

1313
<name>Telegram Bots Client</name>

telegrambots-client/src/main/java/org/telegram/telegrambots/client/okhttp/OkHttpTelegramClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ public CompletableFuture<List<Message>> executeAsync(SendMediaGroup sendMediaGro
341341
.addPart(SendMediaGroup.BUSINESS_CONNECTION_ID_FIELD, sendMediaGroup.getBusinessConnectionId())
342342
.addPart(SendMediaGroup.MESSAGE_EFFECT_ID_FIELD, sendMediaGroup.getMessageEffectId())
343343
.addPart(SendMediaGroup.ALLOW_PAID_BROADCAST_FIELD, sendMediaGroup.getAllowSendingWithoutReply())
344+
.addPart(SendMediaGroup.DIRECT_MESSAGES_TOPIC_ID_FIELD, sendMediaGroup.getDirectMessagesTopicId())
344345
.addJsonPart(SendMediaGroup.REPLY_MARKUP_FIELD, sendMediaGroup.getReplyMarkup())
345346
.addJsonPart(SendMediaGroup.REPLY_PARAMETERS_FIELD, sendMediaGroup.getReplyParameters());
346347

@@ -632,6 +633,8 @@ private <T extends Serializable, Method extends SendMediaBotMethod<T>> Completab
632633
.addPart(SendMediaBotMethod.ALLOW_SENDING_WITHOUT_REPLY_FIELD, method.getAllowSendingWithoutReply())
633634
.addPart(SendMediaBotMethod.MESSAGE_EFFECT_ID_FIELD, method.getMessageEffectId())
634635
.addPart(SendMediaBotMethod.ALLOW_PAID_BROADCAST_FIELD, method.getAllowPaidBroadcast())
636+
.addPart(SendMediaBotMethod.DIRECT_MESSAGES_TOPIC_ID_FIELD, method.getDirectMessagesTopicId())
637+
.addPart(SendMediaBotMethod.SUGGESTED_POST_PARAMETERS_FIELD, method.getSuggestedPostParameters())
635638
.addJsonPart(SendMediaBotMethod.REPLY_PARAMETERS_FIELD, method.getReplyParameters())
636639
.addJsonPart(SendMediaBotMethod.REPLY_MARKUP_FIELD, method.getReplyMarkup());
637640

telegrambots-extensions/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ Just import add the library to your project with one of these options:
1616
<dependency>
1717
<groupId>org.telegram</groupId>
1818
<artifactId>telegrambots-extensions</artifactId>
19-
<version>9.1.0</version>
19+
<version>9.2.0</version>
2020
</dependency>
2121
```
2222

2323
2. Using Gradle:
2424

2525
```gradle
26-
implementation 'org.telegram:telegrambots-extensions:9.1.0'
26+
implementation 'org.telegram:telegrambots-extensions:9.2.0'
2727
```

telegrambots-extensions/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.telegram</groupId>
99
<artifactId>Bots</artifactId>
10-
<version>9.1.0</version>
10+
<version>9.2.0</version>
1111
</parent>
1212

1313
<artifactId>telegrambots-extensions</artifactId>
@@ -78,12 +78,12 @@
7878
<dependency>
7979
<groupId>org.telegram</groupId>
8080
<artifactId>telegrambots-webhook</artifactId>
81-
<version>9.1.0</version>
81+
<version>9.2.0</version>
8282
</dependency>
8383
<dependency>
8484
<groupId>org.telegram</groupId>
8585
<artifactId>telegrambots-longpolling</artifactId>
86-
<version>9.1.0</version>
86+
<version>9.2.0</version>
8787
</dependency>
8888

8989
<dependency>

telegrambots-longpolling/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.telegram</groupId>
88
<artifactId>Bots</artifactId>
9-
<version>9.1.0</version>
9+
<version>9.2.0</version>
1010
</parent>
1111

1212
<artifactId>telegrambots-longpolling</artifactId>
@@ -89,7 +89,7 @@
8989
<dependency>
9090
<groupId>ch.qos.logback</groupId>
9191
<artifactId>logback-classic</artifactId>
92-
<version>1.5.0</version>
92+
<version>1.5.18</version>
9393
<scope>test</scope>
9494
</dependency>
9595
</dependencies>

telegrambots-meta/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.telegram</groupId>
99
<artifactId>Bots</artifactId>
10-
<version>9.1.0</version>
10+
<version>9.2.0</version>
1111
</parent>
1212

1313
<artifactId>telegrambots-meta</artifactId>

0 commit comments

Comments
 (0)