From 3e5f12a4c411079e6db9b9f43df85aedb70c332f Mon Sep 17 00:00:00 2001 From: Ruben Bermudez Date: Tue, 21 Aug 2018 21:19:31 +0100 Subject: [PATCH] Fix #512 --- .../org/telegram/telegrambots/meta/api/objects/Chat.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/Chat.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/Chat.java index 3d5d7b9c..14427628 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/Chat.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/Chat.java @@ -9,6 +9,7 @@ import org.telegram.telegrambots.meta.api.interfaces.BotApiObject; * @version 1.0 * This object represents a Telegram chat with an user or a group */ +@SuppressWarnings("WeakerAccess") public class Chat implements BotApiObject { private static final String ID_FIELD = "id"; @@ -64,7 +65,7 @@ public class Chat implements BotApiObject { @JsonProperty(STICKERSETNAME_FIELD) private String stickerSetName; ///< Optional. For supergroups, name of Group sticker set. Returned only in getChat. @JsonProperty(CANSETSTICKERSET_FIELD) - private Message canSetStickerSet; ///< Optional. True, if the bot can change group the sticker set. Returned only in getChat. + private Boolean canSetStickerSet; ///< Optional. True, if the bot can change group the sticker set. Returned only in getChat. public Chat() { super(); @@ -130,7 +131,7 @@ public class Chat implements BotApiObject { return stickerSetName; } - public Message getCanSetStickerSet() { + public Boolean getCanSetStickerSet() { return canSetStickerSet; }