telegram api method · layer 229 · #5dd69e12

contacts.getContacts

usable by users

Returns the current user's contact list.

definition

contacts.getContacts#5dd69e12 hash:long = contacts.Contacts;

parameters

nametypedescription
hashlongHash used for caching, for more info click here.Note that the hash is computed using the usual algorithm, passing to the algorithm first the previously returned contacts.contacts.saved_count field, then max 100000 sorted user IDs from the contact list, including the ID of the currently logged in user if it is saved as a contact. Example: tdlib implementation.

returns

contacts.Contacts

errors (2)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 2–229 · constructor id changed 2×

idlayers
#22c6aa082–70
#c023849f71–132
#5dd69e12133–229