Skip to content

searchContacts

Function · TDLib 1.8.67 · d1085f9c

Searches for the specified query in the first names, last names and usernames of the known user contacts

searchContacts(
  query: string,
  limit: int32
) → Users

query

string

Query to search for; may be empty to return all contacts

limit

int32

The maximum number of users to be returned