public static class TdApi.SetSupergroupUsername extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
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 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 username of a supergroup or channel, requires owner privileges in the supergroup or channel.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public 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.public int getConstructor()
getConstructor
in class TdApi.Function