- Enclosing class:
- TdApi
Changes the username of a supergroup
or channel, requires owner privileges
in the supergroup or channel.
Returns
Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
long
Identifier of the supergroup or channel.New value of the username. -
Constructor Summary
ConstructorDescriptionChanges the username of a supergroup or channel, requires owner privileges in the supergroup or channel.SetSupergroupUsername
(long supergroupId, String username) Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel.SetSupergroupUsername
(DataInput input) Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
supergroupId
public long supergroupIdIdentifier of the supergroup or channel. -
username
New value of the username. Use an empty string to remove the username. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
SetSupergroupUsername
public SetSupergroupUsername()Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel. ReturnsOk
-
SetSupergroupUsername
Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel. ReturnsOk
- Parameters:
supergroupId
- long Identifier of the supergroup or channel.username
- String New value of the username. Use an empty string to remove the username.
-
SetSupergroupUsername
Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel. ReturnsOk
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-