Interface CheckChatUsername

Checks whether a username can be set for a chat. Request type for Tdjson#checkChatUsername.

interface CheckChatUsername {
    @type: "checkChatUsername";
    chat_id: number;
    username: string;
}

Properties

@type: "checkChatUsername"
chat_id: number

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: string

Username to be checked.