public static class TdApi.ToggleSupergroupHasAggressiveAntiSpamEnabled extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
hasAggressiveAntiSpamEnabled
The new value of hasAggressiveAntiSpamEnabled.
|
long |
supergroupId
The identifier of the supergroup, which isn't a broadcast group.
|
| Constructor and Description |
|---|
ToggleSupergroupHasAggressiveAntiSpamEnabled()
Default 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long supergroupId
public boolean hasAggressiveAntiSpamEnabled
public static final int CONSTRUCTOR
public ToggleSupergroupHasAggressiveAntiSpamEnabled()
Returns Ok
public ToggleSupergroupHasAggressiveAntiSpamEnabled(long supergroupId,
boolean hasAggressiveAntiSpamEnabled)
Returns Ok
supergroupId - The identifier of the supergroup, which isn't a broadcast group.hasAggressiveAntiSpamEnabled - The new value of hasAggressiveAntiSpamEnabled.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object