This commit is contained in:
Andrea Cavalli 2021-12-19 02:20:43 +01:00
parent 2295336fc0
commit 4da9123b07

View File

@ -46,7 +46,8 @@ public class Update implements BotApiObject {
private static final String MYCHATMEMBER_FIELD = "my_chat_member"; private static final String MYCHATMEMBER_FIELD = "my_chat_member";
private static final String CHATMEMBER_FIELD = "chat_member"; private static final String CHATMEMBER_FIELD = "chat_member";
private static final String CHATJOINREQUEST_FIELD = "chat_join_request"; 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) @JsonProperty(UPDATEID_FIELD)
private Integer updateId; 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 private PreCheckoutQuery preCheckoutQuery; ///< Optional. New incoming pre-checkout query. Contains full information about checkout
@JsonProperty(POLL_FIELD) @JsonProperty(POLL_FIELD)
private Poll poll; ///< Optional. New poll state. Bots receive only updates about polls, which are sent by the bot. private Poll poll; ///< Optional. New poll state. Bots receive only updates about polls, which are sent by the bot.
@JsonProperty(EXTRA_CHAT_INFO_FIELD) @JsonProperty(EXTRA_SUPER_CHAT_INFO_FIELD)
private ExtraChatInfo extraChatInfo; ///< Optional. Extra. private ExtraChatInfo extraSuperChatInfo; ///< Optional. Extra.
@JsonProperty(EXTRA_BASIC_CHAT_INFO_FIELD)
private ExtraChatInfo extraBasicChatInfo; ///< Optional. Extra.
/** /**
* Optional. * Optional.
* A user changed their answer in a non-anonymous poll. * A user changed their answer in a non-anonymous poll.
@ -155,8 +158,12 @@ public class Update implements BotApiObject {
return chatJoinRequest != null; return chatJoinRequest != null;
} }
public boolean hasExtraChatInfo() { public boolean hasExtraSuperChatInfo() {
return extraChatInfo != null; return extraSuperChatInfo != null;
}
public boolean hasExtraBasicChatInfo() {
return extraBasicChatInfo != null;
} }
} }