hideUsername

Hide a username from the current account, a bot account, a supergroup, or a channel’s profile. USER-ONLY

Parameters

id: ID

"me", a bot ID, a supergroup ID, or a channel ID.

username: string

The username to hide.

Result

void

Syntax

await client.hideUsername(id, username);