Class TdApi.SetUsername

  • Enclosing class:
    TdApi

    public static class TdApi.SetUsername
    extends TdApi.Function
    Changes the username of the current user.

    Returns Ok

    • Field Detail

      • username

        public String username
        The 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

      • SetUsername

        public SetUsername()
        Default constructor for a function, which changes the username of the current user.

        Returns Ok

      • SetUsername

        public SetUsername​(String username)
        Creates a function, which changes the username of the current user.

        Returns Ok

        Parameters:
        username - The new value of the username. Use an empty string to remove the username.