Class TdApi.SetUsername

  • Enclosing class:
    TdApi

    public static class TdApi.SetUsername
    extends TdApi.Function
    Changes the username of the current user. If something changes, updateUser will be sent.

    Returns Ok

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      java.lang.String username
      The new value of the username.
    • Constructor Summary

      Constructors 
      Constructor Description
      SetUsername()
      Default constructor.
      SetUsername​(java.lang.String username)
      Constructor for initialization of all fields.
    • Field Detail

      • username

        public java.lang.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.
      • SetUsername

        public SetUsername​(java.lang.String username)
        Constructor for initialization of all fields.
        Parameters:
        username - The new value of the username. Use an empty string to remove the username.