Interface Usernames

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

interface Usernames {
    @type: "usernames";
    active_usernames: string[];
    disabled_usernames: string[];
    editable_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.

disabled_usernames: string[]

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

editable_username: string

The active username, which can be changed with setUsername or setSupergroupUsername. Information about other active usernames can be received using getCollectibleItemInfo.