Skip to content

Commit

Permalink
Fix bug when new classes added to existing type
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenlagus committed Aug 15, 2024
1 parent a0535b3 commit 88c32b2
Show file tree
Hide file tree
Showing 27 changed files with 59 additions and 34 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<packaging>pom</packaging>
<version>7.7.2</version>
<version>7.7.3</version>

<modules>
<module>telegrambots-meta</module>
Expand Down
6 changes: 3 additions & 3 deletions telegrambots-abilities/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</parent>

<artifactId>telegrambots-abilities</artifactId>
Expand Down Expand Up @@ -104,12 +104,12 @@
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-webhook</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</dependency>
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-longpolling</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion telegrambots-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</parent>

<name>Telegram Bots Client</name>
Expand Down
4 changes: 2 additions & 2 deletions telegrambots-extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ Just import add the library to your project with one of these options:
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-extensions</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</dependency>
```

2. Using Gradle:

```gradle
implementation 'org.telegram:telegrambots-extensions:7.7.2'
implementation 'org.telegram:telegrambots-extensions:7.7.3'
```
6 changes: 3 additions & 3 deletions telegrambots-extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</parent>

<artifactId>telegrambots-extensions</artifactId>
Expand Down Expand Up @@ -89,12 +89,12 @@
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-webhook</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</dependency>
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-longpolling</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion telegrambots-longpolling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</parent>

<artifactId>telegrambots-longpolling</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion telegrambots-meta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</parent>

<artifactId>telegrambots-meta</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "source"
property = "source",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = ChatBoostSourcePremium.class, name = ChatBoostSource.PREMIUM_TYPE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "type")
property = "type",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = BackgroundTypeFill.class, name = "fill"),
@JsonSubTypes.Type(value = BackgroundTypeWallpaper.class, name = "wallpaper"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "type")
property = "type",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = BackgroundFillSolid.class, name = "solid"),
@JsonSubTypes.Type(value = BackgroundFillGradient.class, name = "gradient"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "status")
property = "status",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = ChatMemberAdministrator.class, name = "administrator"),
@JsonSubTypes.Type(value = ChatMemberBanned.class, name = "kicked"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "type")
property = "type",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = BotCommandScopeDefault.class, name = "default"),
@JsonSubTypes.Type(value = BotCommandScopeAllPrivateChats.class, name = "all_private_chats"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
* @apiNote All URLs passed in inline query results will be available to end users and therefore must be assumed to be public.
*/
//@JsonDeserialize(using = InlineQueryResultDeserializer.class)
@JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION)
@JsonTypeInfo(
use = JsonTypeInfo.Id.DEDUCTION,
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = InlineQueryResultArticle.class),
@JsonSubTypes.Type(value = InlineQueryResultAudio.class),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "type"
property = "type",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = InputMediaAnimation.class, name = "animation"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "type"
property = "type",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = InputPaidMediaPhoto.class, name = "photo"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "type")
property = "type",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = MenuButtonDefault.class, name = "default"),
@JsonSubTypes.Type(value = MenuButtonWebApp.class, name = "web_app"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "type"
property = "type",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = MessageOriginUser.class, name = MessageOrigin.USER_TYPE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "source"
property = "source",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = PassportElementErrorDataField.class, name = "data"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "type"
property = "type",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = PaidMediaPreview.class, name = "preview"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "type"
property = "type",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = TransactionPartnerFragment.class, name = "fragment"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "type"
property = "type",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = RevenueWithdrawalStatePending.class, name = "pending"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "type"
property = "type",
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = ReactionTypeEmoji.class, name = ReactionType.EMOJI_TYPE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
* @version 1.0
* Reply keyboard abstract type
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION)
@JsonTypeInfo(
use = JsonTypeInfo.Id.DEDUCTION,
defaultImpl = Void.class
)
@JsonSubTypes({
@JsonSubTypes.Type(value = ForceReplyKeyboard.class),
@JsonSubTypes.Type(value = ReplyKeyboardMarkup.class),
Expand Down
4 changes: 2 additions & 2 deletions telegrambots-springboot-longpolling-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</parent>

<artifactId>telegrambots-springboot-longpolling-starter</artifactId>
Expand Down Expand Up @@ -71,7 +71,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<telegrambots.version>7.7.2</telegrambots.version>
<telegrambots.version>7.7.3</telegrambots.version>
<spring.version>3.2.3</spring.version>
</properties>

Expand Down
4 changes: 2 additions & 2 deletions telegrambots-springboot-webhook-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</parent>

<artifactId>telegrambots-springboot-webhook-starter</artifactId>
Expand Down Expand Up @@ -71,7 +71,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<telegrambots.version>7.7.2</telegrambots.version>
<telegrambots.version>7.7.3</telegrambots.version>
<spring.version>3.2.3</spring.version>
<jackson.version>2.17.2</jackson.version>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion telegrambots-test-reports/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</parent>

<artifactId>telegrambots-test-reports</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion telegrambots-webhook/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.2</version>
<version>7.7.3</version>
</parent>

<artifactId>telegrambots-webhook</artifactId>
Expand Down

0 comments on commit 88c32b2

Please sign in to comment.