Interface InternalLinkTypeRequestManagedBot

The link is a link to a dialog for creating of a managed bot. Call searchPublicChat with the given manager bot username. If the chat is found, the chat is a chat with a bot and the bot has can_manage_bots == true, then show bot creation confirmation dialog with the given suggested_bot_username and suggested_bot_name. If user agrees, call createBot with via_link == true to create the bot. Subtype of InternalLinkType.

interface InternalLinkTypeRequestManagedBot {
    @type: "internalLinkTypeRequestManagedBot";
    manager_bot_username: string;
    suggested_bot_name: string;
    suggested_bot_username: string;
}

Properties

@type: "internalLinkTypeRequestManagedBot"
manager_bot_username: string

Username of the bot which will manage the new bot.

suggested_bot_name: string

Suggested name for the bot; may be empty if not specified.

suggested_bot_username: string

Suggested username for the bot; always ends with "bot" or a string from updateAllowedBotUsernamePremiumSuffixes case-insensitive.