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

Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the main chat list. Returns object_ptr<Chats>.

NameTypeDescription
querystringQuery to search for.
limitnumberThe maximum number of chats to be returned.

More details on telegram's documentation.