Add flag
This commit is contained in:
parent
a941d30074
commit
28c21574d9
|
@ -33,6 +33,7 @@ public class ChatPermissions implements BotApiObject {
|
||||||
private static final String CAN_CHANGE_INFO_FIELD = "can_change_info";
|
private static final String CAN_CHANGE_INFO_FIELD = "can_change_info";
|
||||||
private static final String CAN_INVITE_USERS_FIELD = "can_invite_users";
|
private static final String CAN_INVITE_USERS_FIELD = "can_invite_users";
|
||||||
private static final String CAN_PIN_MESSAGES_FIELD = "can_pin_messages";
|
private static final String CAN_PIN_MESSAGES_FIELD = "can_pin_messages";
|
||||||
|
private static final String CANMANAGETOPICS_FIELD = "can_manage_topics";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Optional.
|
* Optional.
|
||||||
|
@ -82,4 +83,10 @@ public class ChatPermissions implements BotApiObject {
|
||||||
*/
|
*/
|
||||||
@JsonProperty(CAN_PIN_MESSAGES_FIELD)
|
@JsonProperty(CAN_PIN_MESSAGES_FIELD)
|
||||||
private Boolean canPinMessages;
|
private Boolean canPinMessages;
|
||||||
|
/**
|
||||||
|
* Optional.
|
||||||
|
* True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only
|
||||||
|
*/
|
||||||
|
@JsonProperty(CANMANAGETOPICS_FIELD)
|
||||||
|
private Boolean canManageTopics;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue