lib/tdlib/client_methods.rb
# Checks whether a username can be set for a chat.
#
# @param chat_id [Integer] 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.
# @param username [TD::Types::String] Username to be checked.
# @return [TD::Types::CheckChatUsernameResult]
Checks whether a username can be set for a chat.
Checks whether a username can be set for a chat .
def check_chat_username(chat_id:, username:)
    broadcast('@type'    => 'checkChatUsername',
              'chat_id'  => chat_id,
              'username' => username)
  end
def check_chat_username ( chat_id : , username : ) broadcast ( '@type' => 'checkChatUsername' , 'chat_id' => chat_id , 'username' => username ) end
Checks whether a username can be set for a chat.
Checks whether a username can be set for a chat .
None
TD::Types::CheckChatUsernameResult
chat_id
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.
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
Username to be checked.
Username to be checked .