Package org.drinkless.tdlib
Class TdApi.ToggleSupergroupHasAggressiveAntiSpamEnabled
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.ToggleSupergroupHasAggressiveAntiSpamEnabled
- Enclosing class:
- TdApi
public static class TdApi.ToggleSupergroupHasAggressiveAntiSpamEnabled
extends TdApi.Function<TdApi.Ok>
Toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.canToggleAggressiveAntiSpam == true.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanThe new value of hasAggressiveAntiSpamEnabled.longThe identifier of the supergroup, which isn't a broadcast group. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which toggles whether aggressive anti-spam checks are enabled in the supergroup.ToggleSupergroupHasAggressiveAntiSpamEnabled(long supergroupId, boolean hasAggressiveAntiSpamEnabled) Creates a function, which toggles whether aggressive anti-spam checks are enabled in the supergroup. -
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 supergroupIdThe identifier of the supergroup, which isn't a broadcast group. -
hasAggressiveAntiSpamEnabled
public boolean hasAggressiveAntiSpamEnabledThe new value of hasAggressiveAntiSpamEnabled. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ToggleSupergroupHasAggressiveAntiSpamEnabled
public ToggleSupergroupHasAggressiveAntiSpamEnabled()Default constructor for a function, which toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.canToggleAggressiveAntiSpam == true.Returns
Ok -
ToggleSupergroupHasAggressiveAntiSpamEnabled
public ToggleSupergroupHasAggressiveAntiSpamEnabled(long supergroupId, boolean hasAggressiveAntiSpamEnabled) Creates a function, which toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.canToggleAggressiveAntiSpam == true.Returns
Ok- Parameters:
supergroupId- The identifier of the supergroup, which isn't a broadcast group.hasAggressiveAntiSpamEnabled- The new value of hasAggressiveAntiSpamEnabled.
-
-
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
-