get_contacts()

async Client.get_contacts()

Get contacts from your Telegram address book.

Usable by Users Bots
Returns:

List of User – On success, a list of users is returned.

Example

contacts = await app.get_contacts()
print(contacts)