Module tdlight.api

Class TdApi.SetSupergroupUsername

Enclosing class:
TdApi

public static final class TdApi.SetSupergroupUsername extends TdApi.Function<TdApi.Ok>
Changes the 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.
    • 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.

      Returns Ok

    • SetSupergroupUsername

      public SetSupergroupUsername(long supergroupId, String username)
      Changes the 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.
    • SetSupergroupUsername

      public SetSupergroupUsername(DataInput input) throws IOException
      Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel.

      Returns Ok

      Throws:
      IOException
  • Method Details