telegram api method · layer 229 · #5dd69e12
contacts.getContacts
Returns the current user's contact list.
definition
contacts.getContacts#5dd69e12 hash:long = contacts.Contacts;
parameters
| name | type | description |
|---|---|---|
hash | long | Hash 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
errors (2)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 401 | AUTH_KEY_UNREGISTERED | The 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×
| id | layers |
|---|---|
| #22c6aa08 | 2–70 |
| #c023849f | 71–132 |
| #5dd69e12 | 133–229 |