Class 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 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.