accept_contact()

async Client.accept_contact()

Accept an incoming contact if the add contact action bar is active.

Usable by Users Bots
Parameters:

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

Returns:

Updates – Updates on success.

Example

await app.accept_contact(123456789)