Interface CheckBotUsername

Checks whether a username can be set for a new bot or assigned as a secondary username to an existing bot. Use checkChatUsername to check username for other chat types. Request type for Tdjson#checkBotUsername.

interface CheckBotUsername {
    @type: "checkBotUsername";
    is_secondary?: boolean;
    username: string;
}

Properties

@type: "checkBotUsername"
is_secondary?: boolean

Pass true to check whether the username is suitable as a secondary username for an existing bot; pass false to check whether the username is suitable for createBot.

username: string

Username to be checked.