get_contacts_count()

Client.get_contacts_count()

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

Returns

int – On success, the contacts count is returned.

Example

count = app.get_contacts_count()
print(count)