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 TypeFieldDescriptionbooleanPass true to apply the change to the existing invite links, including primary links.static final intIdentifier uniquely determining type of the object.longIdentifier of the bot which will be the guard bot in the group; pass 0 if none; ignored if joinByRequest == false.booleanNew value of joinByRequest.longIdentifier of the supergroup that isn't a broadcast group and isn't a channel direct message 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, long guardBotUserId, boolean applyToInviteLinks) 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 and isn't a channel direct message group. -
joinByRequest
public boolean joinByRequestNew value of joinByRequest. -
guardBotUserId
public long guardBotUserIdIdentifier of the bot which will be the guard bot in the group; pass 0 if none; ignored if joinByRequest == false. The bot must have administrator privileges and canInviteUsers right in the supergroup chat, and must have userTypeBot.isGuard == true. -
applyToInviteLinks
public boolean applyToInviteLinksPass true to apply the change to the existing invite links, including primary links. -
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, long guardBotUserId, boolean applyToInviteLinks) 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 and isn't a channel direct message group.joinByRequest- New value of joinByRequest.guardBotUserId- Identifier of the bot which will be the guard bot in the group; pass 0 if none; ignored if joinByRequest == false. The bot must have administrator privileges and canInviteUsers right in the supergroup chat, and must have userTypeBot.isGuard == true.applyToInviteLinks- Pass true to apply the change to the existing invite links, including primary links.
-
-
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
-