Package org.drinkless.tdlib
Class TdApi.ToggleSupergroupJoinByRequest
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.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
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanNew value of joinByRequest.longIdentifier of the supergroup that isn't a broadcast group. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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 TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-