View Source ExTDLib.Method.SearchContacts (ExTDLib v0.0.4)

Searches for the specified query in the first names, last names and usernames of the known user contacts. Returns object_ptr<Users>.

NameTypeDescription
querystringQuery to search for; may be empty to return all contacts.
limitnumberThe maximum number of users to be returned.

More details on telegram's documentation.