Class TdApi.ToggleSupergroupJoinByRequest
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.ToggleSupergroupJoinByRequest
- Enclosing class:
- TdApi
Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires canRestrictMembers administrator right.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
New value of joinByRequest.long
Identifier of the supergroup that isn't a broadcast group. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires canRestrictMembers administrator right.ToggleSupergroupJoinByRequest
(long supergroupId, boolean joinByRequest) Creates a function, which toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires canRestrictMembers administrator right. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
supergroupId
public long supergroupIdIdentifier of the supergroup that isn't a broadcast group. -
joinByRequest
public boolean joinByRequestNew value of joinByRequest. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ToggleSupergroupJoinByRequest
public ToggleSupergroupJoinByRequest()Default constructor for a function, which toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires canRestrictMembers administrator right.Returns
Ok
-
ToggleSupergroupJoinByRequest
public ToggleSupergroupJoinByRequest(long supergroupId, boolean joinByRequest) Creates a function, which toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires canRestrictMembers administrator right.Returns
Ok
- Parameters:
supergroupId
- Identifier of the supergroup that isn't a broadcast group.joinByRequest
- New value of joinByRequest.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-