contacts.getContacts

Returns the current user's contact list.

contacts.contactsNotModified#b74ba9d2 = contacts.Contacts;
contacts.contacts#eae87e42 contacts:Vector<Contact> saved_count:int users:Vector<User> = contacts.Contacts;
---functions---
contacts.getContacts#c023849f hash:int = contacts.Contacts;

Parameters

Name Type Description
hash int If there already is a full contact list on the client, a hash of a the list of contact IDs in ascending order may be passed in this parameter. If the contact set was not changed, (contacts.contactsNotModified) will be returned.

Result

contacts.Contacts

Possible errors

Code Type Description
400 BOT_METHOD_INVALID This method can't be used by a bot

Related pages

Pagination in the API

How to fetch results from large lists of objects.

contacts.contactsNotModified

Contact list on the server is the same as the list on the client.