Module tdlight.api

Class TdApi.CheckChatUsername

Enclosing class:
TdApi

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

Returns CheckChatUsernameResult

  • Field Details

    • chatId

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

      public String username
      Username to be checked.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • 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; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or zero if the chat is being created.
      username - String Username to be checked.
    • CheckChatUsername

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