Package org.drinkless.tdlib
Class TdApi.SetSupergroupUsername
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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 intCONSTRUCTORIdentifier uniquely determining type of the object.longsupergroupIdIdentifier of the supergroup or channel.StringusernameNew value of the username.
-
Constructor Summary
Constructors Constructor 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, String username)Creates a function, which changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
supergroupId
public long supergroupId
Identifier of the supergroup or channel.
-
username
public String username
New value of the username. Use an empty string to remove the username.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SetSupergroupUsername
public SetSupergroupUsername()
Default constructor for a function, which changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel.Returns
Ok
-
SetSupergroupUsername
public SetSupergroupUsername(long supergroupId, String username)Creates a function, which changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel.Returns
Ok- Parameters:
supergroupId- Identifier of the supergroup or channel.username- New value of the username. Use an empty string to remove the username.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-