diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/Update.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/Update.java index 8089f253..7faa1710 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/Update.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/Update.java @@ -46,7 +46,8 @@ public class Update implements BotApiObject { private static final String MYCHATMEMBER_FIELD = "my_chat_member"; private static final String CHATMEMBER_FIELD = "chat_member"; private static final String CHATJOINREQUEST_FIELD = "chat_join_request"; - private static final String EXTRA_CHAT_INFO_FIELD = "extra_chat_info"; + private static final String EXTRA_SUPER_CHAT_INFO_FIELD = "extra_super_chat_info"; + private static final String EXTRA_BASIC_CHAT_INFO_FIELD = "extra_basic_chat_info"; @JsonProperty(UPDATEID_FIELD) private Integer updateId; @@ -70,8 +71,10 @@ public class Update implements BotApiObject { private PreCheckoutQuery preCheckoutQuery; ///< Optional. New incoming pre-checkout query. Contains full information about checkout @JsonProperty(POLL_FIELD) private Poll poll; ///< Optional. New poll state. Bots receive only updates about polls, which are sent by the bot. - @JsonProperty(EXTRA_CHAT_INFO_FIELD) - private ExtraChatInfo extraChatInfo; ///< Optional. Extra. + @JsonProperty(EXTRA_SUPER_CHAT_INFO_FIELD) + private ExtraChatInfo extraSuperChatInfo; ///< Optional. Extra. + @JsonProperty(EXTRA_BASIC_CHAT_INFO_FIELD) + private ExtraChatInfo extraBasicChatInfo; ///< Optional. Extra. /** * Optional. * A user changed their answer in a non-anonymous poll. @@ -155,8 +158,12 @@ public class Update implements BotApiObject { return chatJoinRequest != null; } - public boolean hasExtraChatInfo() { - return extraChatInfo != null; + public boolean hasExtraSuperChatInfo() { + return extraSuperChatInfo != null; + } + + public boolean hasExtraBasicChatInfo() { + return extraBasicChatInfo != null; } }