get_contacts_count()#

Client.get_contacts_count()#

Get the total count of contacts from your Telegram address book.

Usable by Users Bots
Returns:

int – On success, the contacts count is returned.

Example

count = await app.get_contacts_count()
print(count)