public static class TdApi.ToggleSupergroupUsernameIsActive extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isActive
Pass true to activate the username; pass false to disable it.
|
long |
supergroupId
Identifier of the supergroup or channel.
|
java.lang.String |
username
The username to change.
|
| Constructor and Description |
|---|
ToggleSupergroupUsernameIsActive()
Default constructor for a function, which changes active state for a username of a supergroup or channel, requires owner privileges in the supergroup or channel.
|
ToggleSupergroupUsernameIsActive(long supergroupId,
java.lang.String username,
boolean isActive)
Creates a function, which changes active state for a username of a supergroup or channel, requires owner privileges in the supergroup or channel.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long supergroupId
public java.lang.String username
public boolean isActive
public static final int CONSTRUCTOR
public ToggleSupergroupUsernameIsActive()
Returns Ok
public ToggleSupergroupUsernameIsActive(long supergroupId,
java.lang.String username,
boolean isActive)
Returns Ok
supergroupId - Identifier of the supergroup or channel.username - The username to change.isActive - Pass true to activate the username; pass false to disable it.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object