Layer 220
ContactsSearch
Returns users found by username substring.
method
Users
contacts.search#11f812d8 q:string limit:int = contacts.Found;
Parameters
| Name | Type | Description |
|---|---|---|
| Q | string | Target substring |
| Limit | int | Maximum number of users to be returned |
Returns
contacts.FoundPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | QUERY_TOO_SHORT | The query string is too short. |
| 400 | SEARCH_QUERY_EMPTY | The search query is empty. |
Gogram Example
// ContactsSearch - positional arguments result, err := client.ContactsSearch("...", 0) if err != nil { // handle error } // result is *tg.ContactsFound