Class TdApi.CheckBotUsername

Enclosing class:
TdApi

public static class TdApi.CheckBotUsername extends TdApi.Function<TdApi.CheckChatUsernameResult>
Checks whether a username can be set for a new bot. Use checkChatUsername to check username for other chat types.

Returns CheckChatUsernameResult

  • Field Details

    • username

      public String username
      Username to be checked.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • CheckBotUsername

      public CheckBotUsername()
      Default constructor for a function, which checks whether a username can be set for a new bot. Use checkChatUsername to check username for other chat types.

      Returns CheckChatUsernameResult

    • CheckBotUsername

      public CheckBotUsername(String username)
      Creates a function, which checks whether a username can be set for a new bot. Use checkChatUsername to check username for other chat types.

      Returns CheckChatUsernameResult

      Parameters:
      username - Username to be checked.
  • Method Details