Skip to content

Commit 1cc02a4

Browse files
committed
Api Version 7.8
1 parent 88c32b2 commit 1cc02a4

File tree

14 files changed

+66
-38
lines changed

14 files changed

+66
-38
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
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>7.7.3</version>
10+
<version>7.8.0</version>
1111

1212
<modules>
1313
<module>telegrambots-meta</module>

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>7.7.3</version>
10+
<version>7.8.0</version>
1111
</parent>
1212

1313
<artifactId>telegrambots-abilities</artifactId>
@@ -104,12 +104,12 @@
104104
<dependency>
105105
<groupId>org.telegram</groupId>
106106
<artifactId>telegrambots-webhook</artifactId>
107-
<version>7.7.3</version>
107+
<version>7.8.0</version>
108108
</dependency>
109109
<dependency>
110110
<groupId>org.telegram</groupId>
111111
<artifactId>telegrambots-longpolling</artifactId>
112-
<version>7.7.3</version>
112+
<version>7.8.0</version>
113113
</dependency>
114114

115115
<dependency>

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>7.7.3</version>
10+
<version>7.8.0</version>
1111
</parent>
1212

1313
<name>Telegram Bots Client</name>

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>7.7.3</version>
19+
<version>7.8.0</version>
2020
</dependency>
2121
```
2222

2323
2. Using Gradle:
2424

2525
```gradle
26-
implementation 'org.telegram:telegrambots-extensions:7.7.3'
26+
implementation 'org.telegram:telegrambots-extensions:7.8.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>7.7.3</version>
10+
<version>7.8.0</version>
1111
</parent>
1212

1313
<artifactId>telegrambots-extensions</artifactId>
@@ -89,12 +89,12 @@
8989
<dependency>
9090
<groupId>org.telegram</groupId>
9191
<artifactId>telegrambots-webhook</artifactId>
92-
<version>7.7.3</version>
92+
<version>7.8.0</version>
9393
</dependency>
9494
<dependency>
9595
<groupId>org.telegram</groupId>
9696
<artifactId>telegrambots-longpolling</artifactId>
97-
<version>7.7.3</version>
97+
<version>7.8.0</version>
9898
</dependency>
9999

100100
<dependency>

telegrambots-longpolling/pom.xml

Lines changed: 1 addition & 1 deletion
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>7.7.3</version>
9+
<version>7.8.0</version>
1010
</parent>
1111

1212
<artifactId>telegrambots-longpolling</artifactId>

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>7.7.3</version>
10+
<version>7.8.0</version>
1111
</parent>
1212

1313
<artifactId>telegrambots-meta</artifactId>

telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/methods/pinnedmessages/PinChatMessage.java

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,37 @@
3636
public class PinChatMessage extends BotApiMethodBoolean {
3737
public static final String PATH = "pinChatMessage";
3838

39-
private static final String CHATID_FIELD = "chat_id";
40-
private static final String MESSAGEID_FIELD = "message_id";
41-
private static final String DISABLENOTIFICATION_FIELD = "disable_notification";
39+
private static final String CHAT_ID_FIELD = "chat_id";
40+
private static final String MESSAGE_ID_FIELD = "message_id";
41+
private static final String DISABLE_NOTIFICATION_FIELD = "disable_notification";
42+
private static final String BUSINESS_CONNECTION_ID_FIELD = "business_connection_id";
4243

43-
@JsonProperty(CHATID_FIELD)
44+
/**
45+
* Required.
46+
* Unique identifier for the target chat or username of the target channel (in the format @channelusername)
47+
*/
48+
@JsonProperty(CHAT_ID_FIELD)
4449
@NonNull
45-
private String chatId; ///< Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
46-
@JsonProperty(MESSAGEID_FIELD)
50+
private String chatId;
51+
/**
52+
* Required.
53+
* Identifier of a message to pin
54+
*/
55+
@JsonProperty(MESSAGE_ID_FIELD)
4756
@NonNull
48-
private Integer messageId; ///< Required. Identifier of a message to pin
57+
private Integer messageId;
4958
/**
5059
* Pass True, if it is not necessary to send a notification to all chat members about the new pinned message.
5160
* Notifications are always disabled in channels.
5261
*/
53-
@JsonProperty(DISABLENOTIFICATION_FIELD)
62+
@JsonProperty(DISABLE_NOTIFICATION_FIELD)
5463
private Boolean disableNotification;
64+
/**
65+
* Optional
66+
* Unique identifier of the business connection on behalf of which the message will be pinned
67+
*/
68+
@JsonProperty(BUSINESS_CONNECTION_ID_FIELD)
69+
private String businessConnectionId;
5570

5671
@Tolerate
5772
public void setChatId(@NonNull Long chatId) {

telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/methods/pinnedmessages/UnpinChatMessage.java

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,32 @@
3737
public class UnpinChatMessage extends BotApiMethodBoolean {
3838
public static final String PATH = "unpinChatMessage";
3939

40-
private static final String CHATID_FIELD = "chat_id";
41-
private static final String MESSAGEID_FIELD = "message_id";
40+
private static final String CHAT_ID_FIELD = "chat_id";
41+
private static final String MESSAGE_ID_FIELD = "message_id";
42+
private static final String BUSINESS_CONNECTION_ID_FIELD = "business_connection_id";
4243

43-
@JsonProperty(CHATID_FIELD)
44+
/**
45+
* Required.
46+
* Unique identifier for the target chat or username of the target channel (in the format @channelusername)
47+
*/
48+
@JsonProperty(CHAT_ID_FIELD)
4449
@NonNull
45-
private String chatId; ///< Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
50+
private String chatId;
4651
/**
47-
* Optional.
48-
* Identifier of a message to unpin.
52+
* Optional
53+
* Identifier of the message to unpin.
4954
*
50-
* @apiNote If not specified, the most recent pinned message (by send date) will be unpinned.
55+
* @apiNote Required if business_connection_id is specified.
56+
* @apiNote If not specified, the most recent pinned message (by sending date) will be unpinned.
5157
*/
52-
@JsonProperty(MESSAGEID_FIELD)
58+
@JsonProperty(MESSAGE_ID_FIELD)
5359
private Integer messageId;
60+
/**
61+
* Optional
62+
* Unique identifier of the business connection on behalf of which the message will be unpinned
63+
*/
64+
@JsonProperty(BUSINESS_CONNECTION_ID_FIELD)
65+
private String businessConnectionId;
5466

5567
@Tolerate
5668
public void setChatId(@NonNull Long chatId) {

telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/User.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public class User implements BotApiObject {
4040
private static final String IS_PREMIUM_FIELD = "is_premium";
4141
private static final String ADDED_TO_ATTACHMENT_MENU_FIELD = "added_to_attachment_menu";
4242
private static final String CAN_CONNECT_TO_BUSINESS_FIELD = "can_connect_to_business";
43+
private static final String HAS_MAIN_WEB_APP_FIELD = "has_main_web_app";
4344

4445
/**
4546
* Unique identifier for this user or bot.
@@ -112,9 +113,9 @@ public class User implements BotApiObject {
112113
private Boolean addedToAttachmentMenu;
113114
/**
114115
* Optional.
115-
* True, if the bot can be connected to a Telegram Business account to receive its messages.
116-
* Returned only in getMe.
116+
* True, if the bot has a main Web App.
117+
* @apiNote Returned only in getMe.
117118
*/
118-
@JsonProperty(CAN_CONNECT_TO_BUSINESS_FIELD)
119-
private Boolean canConnectToBusiness;
119+
@JsonProperty(HAS_MAIN_WEB_APP_FIELD)
120+
private Boolean hasMainWebApp;
120121
}

telegrambots-springboot-longpolling-starter/pom.xml

Lines changed: 2 additions & 2 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>7.7.3</version>
10+
<version>7.8.0</version>
1111
</parent>
1212

1313
<artifactId>telegrambots-springboot-longpolling-starter</artifactId>
@@ -71,7 +71,7 @@
7171
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7272
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
7373

74-
<telegrambots.version>7.7.3</telegrambots.version>
74+
<telegrambots.version>7.8.0</telegrambots.version>
7575
<spring.version>3.2.3</spring.version>
7676
</properties>
7777

telegrambots-springboot-webhook-starter/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>7.7.3</version>
9+
<version>7.8.0</version>
1010
</parent>
1111

1212
<artifactId>telegrambots-springboot-webhook-starter</artifactId>
@@ -71,7 +71,7 @@
7171
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7272
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
7373

74-
<telegrambots.version>7.7.3</telegrambots.version>
74+
<telegrambots.version>7.8.0</telegrambots.version>
7575
<spring.version>3.2.3</spring.version>
7676
<jackson.version>2.17.2</jackson.version>
7777
</properties>

telegrambots-test-reports/pom.xml

Lines changed: 1 addition & 1 deletion
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>7.7.3</version>
9+
<version>7.8.0</version>
1010
</parent>
1111

1212
<artifactId>telegrambots-test-reports</artifactId>

telegrambots-webhook/pom.xml

Lines changed: 1 addition & 1 deletion
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>7.7.3</version>
9+
<version>7.8.0</version>
1010
</parent>
1111

1212
<artifactId>telegrambots-webhook</artifactId>

0 commit comments

Comments
 (0)