Class TdApi.CheckChatUsername

Enclosing class:
TdApi

public static class TdApi.CheckChatUsername
extends TdApi.Function
Checks whether a username can be set for a chat.

Returns CheckChatUsernameResult

  • Field Details

    • chatId

      public long chatId
      Chat identifier; should be identifier of a supergroup chat, or a channel chat, or a private chat with self, or zero if chat is being created.
    • username

      public String username
      Username to be checked.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • CheckChatUsername

      public CheckChatUsername()
      Checks whether a username can be set for a chat.

      Returns CheckChatUsernameResult

    • CheckChatUsername

      public CheckChatUsername​(long chatId, String username)
      Checks whether a username can be set for a chat.

      Returns CheckChatUsernameResult

      Parameters:
      chatId - long Chat identifier; should be identifier of a supergroup chat, or a channel chat, or a private chat with self, or zero if chat is being created.
      username - String Username to be checked.
    • CheckChatUsername

      public CheckChatUsername​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details