check_chat_username


Description:

public async CheckChatUsernameResult check_chat_username (int64 chat_id, string username) throws TDLibError

Checks whether a username can be set for a chat

Parameters:

chat_id

Chat identifier; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or 0 if the chat is being created

username

Username to be checked