public static class TdApi.SetSupergroupUsername extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
supergroupId
Identifier of the supergroup or channel.
|
java.lang.String |
username
New value of the username.
|
| Constructor and Description |
|---|
SetSupergroupUsername()
Default constructor for a function, which changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel.
|
SetSupergroupUsername(long supergroupId,
java.lang.String username)
Creates a function, which changes the editable 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 static final int CONSTRUCTOR
public SetSupergroupUsername()
Returns Ok
public SetSupergroupUsername(long supergroupId,
java.lang.String username)
Returns Ok
supergroupId - Identifier of the supergroup or channel.username - New value of the username. Use an empty string to remove the username. The username can't be completely removed if there is another active or disabled username.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object