Package it.tdlight.jni
Class TdApi.SetSupergroupUsername
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.SetSupergroupUsername
- Enclosing class:
- TdApi
public static class TdApi.SetSupergroupUsername extends TdApi.Function
Changes the username of a supergroup
or channel, requires owner privileges
in the supergroup or channel.
Returns Ok
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
int
supergroupId
Identifier of the supergroup or channel.String
username
New value of the username. -
Constructor Summary
Constructors Constructor Description SetSupergroupUsername()
Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel.SetSupergroupUsername(int supergroupId, String username)
Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel.SetSupergroupUsername(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
supergroupId
public int 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:
- Constant Field Values
-
-
Constructor Details
-
SetSupergroupUsername
public SetSupergroupUsername()Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel.Returns
Ok
-
SetSupergroupUsername
Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel.Returns
Ok
- Parameters:
supergroupId
- int Identifier of the supergroup or channel.username
- String New value of the username. Use an empty string to remove the username.
-
SetSupergroupUsername
- 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()
-