Interface SetSupergroupUsername

Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel. Request type for Tdjson#setSupergroupUsername.

interface SetSupergroupUsername {
    @type: "setSupergroupUsername";
    supergroup_id: number;
    username: string;
}

Properties

@type: "setSupergroupUsername"
supergroup_id: number

Identifier of the supergroup or channel.

username: string

New value of the username. Use an empty string to remove the username. The username can't be completely removed if there is another active or disabled username.