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

Searches for the specified query in the title and username of already known chats; this is an offline request. Returns chats in the order seen in the main chat list. Returns object_ptr<Chats>.

NameTypeDescription
querystringQuery to search for. If the query is empty, returns up to 50 recently found chats.
limitnumberThe maximum number of chats to be returned.

More details on telegram's documentation.