Interface Usernames

Describes usernames assigned to a user, a supergroup, or a channel.

interface Usernames {
    @type: "usernames";
    active_usernames: string[];
    collectible_usernames: string[];
    disabled_usernames: string[];
    editable_username: string;
    secondary_username: string;
}

Properties

@type: "usernames"
active_usernames: string[]

List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames, reorderBotActiveUsernames, or reorderSupergroupActiveUsernames.

collectible_usernames: string[]

Collectible usernames that were purchased at https://fragment.com and can be passed to getCollectibleItemInfo for more details.

disabled_usernames: string[]

List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.

editable_username: string

Active or disabled username, which may be changed with setUsername or setSupergroupUsername.

secondary_username: string

Secondary non-collectible username. Currently, must be non-empty only for bot accounts. Can't be used in toggleBotUsernameIsActive; use addBotSecondaryUsername or deleteBotSecondaryUsername to edit it. If the username is disabled, then a Telegram Premium subscription is required to re-enable it.