hide_peer_settings_bar()

async Client.hide_peer_settings_bar()

Hide the peer settings bar (the “Add to contacts” / “Block” bar) for a user.

Usable by Users Bots
Parameters:

chat_id (int | str) – Unique identifier (int) or username (str) of the target user.

Returns:

bool – True on success.

Example

await app.hide_peer_settings_bar(user_id)