Add extra parameters

This commit is contained in:
Andrea Cavalli 2022-01-29 16:06:56 +01:00
parent d6f1aa70db
commit 6a2416e81e

View File

@ -34,6 +34,12 @@ public class User implements BotApiObject {
private static final String CANJOINGROUPS_FIELD = "can_join_groups";
private static final String CANREADALLGROUPMESSAGES_FIELD = "can_read_all_group_messages";
private static final String SUPPORTINLINEQUERIES_FIELD = "supports_inline_queries";
private static final String IS_VERIFIED_FIELD = "is_verified";
private static final String IS_RESTRICTED_FIELD = "is_restricted";
private static final String IS_CREATOR_FIELD = "is_creator";
private static final String IS_SCAM_FIELD = "is_scam";
private static final String IS_FAKE_FIELD = "is_fake";
private static final String IS_DELETED_FIELD = "is_deleted";
/**
* Unique identifier for this user or bot.
@ -62,4 +68,15 @@ public class User implements BotApiObject {
private Boolean canReadAllGroupMessages; ///< Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.
@JsonProperty(SUPPORTINLINEQUERIES_FIELD)
private Boolean supportInlineQueries; ///< Optional. True, if the bot supports inline queries. Returned only in getMe.
@JsonProperty(IS_VERIFIED_FIELD)
private Boolean isVerified; ///< Optional. Extra.
@JsonProperty(IS_CREATOR_FIELD)
private Boolean isCreator; ///< Optional. Extra.
@JsonProperty(IS_SCAM_FIELD)
private Boolean isScam; ///< Optional. Extra.
@JsonProperty(IS_FAKE_FIELD)
private Boolean isFake; ///< Optional. Extra.
@JsonProperty(IS_DELETED_FIELD)
private Boolean isDeleted; ///< Optional. Extra.
}