Module tdlight.api

Class TdApi.SetSupergroupUsername

Enclosing class:
TdApi

public static final class TdApi.SetSupergroupUsername extends TdApi.Function<TdApi.Ok>
Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel. Returns Ok
  • Field Details

    • 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. The username can't be completely removed if there is another active or disabled username.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SetSupergroupUsername

      public SetSupergroupUsername()
      Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel. Returns Ok
    • SetSupergroupUsername

      public SetSupergroupUsername(long supergroupId, String username)
      Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel. Returns Ok
      Parameters:
      supergroupId - long Identifier of the supergroup or channel.
      username - String 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.
    • SetSupergroupUsername

      public SetSupergroupUsername(DataInput input) throws IOException
      Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel. Returns Ok
      Throws:
      IOException
  • Method Details