Skip to content

Commit

Permalink
Fixes on Telegram Premium
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadiducho committed Sep 1, 2022
1 parent 8dc5e68 commit c23ead3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'com.cadiducho'
version = '6.2'
version = '6.2.1'
sourceCompatibility = '1.8'

java {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/cadiducho/telegrambotapi/Sticker.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class Sticker {
/**
* Optional. For premium regular stickers, premium animation for the sticker
*/
@Json(name = "premium_animation") private String premium_Animation;
@Json(name = "premium_animation") private File premium_Animation;

/**
* Optional. For mask stickers, the position where the mask should be placed
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/cadiducho/telegrambotapi/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ public class User {
/**
* Optional. True, if this user is a Telegram Premium user
*/
@Json(name = "is_premium") private String isPremium;
@Json(name = "is_premium") private Boolean isPremium;

/**
* Optional. True, if this user added the bot to the attachment menu
*/
@Json(name = "added_to_attachment_menu") private String addedToAttachmentMenu;
@Json(name = "added_to_attachment_menu") private Boolean addedToAttachmentMenu;

/**
* Optional. True, if the bot can be invited to groups. Returned only in getMe.
Expand Down

0 comments on commit c23ead3

Please sign in to comment.