public static class TdApi.ToggleBotUsernameIsActive extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
long |
botUserId
Identifier of the target bot.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isActive
Pass true to activate the username; pass false to disable it.
|
java.lang.String |
username
The username to change.
|
| Constructor and Description |
|---|
ToggleBotUsernameIsActive()
Default constructor for a function, which changes active state for a username of a bot.
|
ToggleBotUsernameIsActive(long botUserId,
java.lang.String username,
boolean isActive)
Creates a function, which changes active state for a username of a bot.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long botUserId
public java.lang.String username
public boolean isActive
public static final int CONSTRUCTOR
public ToggleBotUsernameIsActive()
Returns Ok
public ToggleBotUsernameIsActive(long botUserId,
java.lang.String username,
boolean isActive)
Returns Ok
botUserId - Identifier of the target bot.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