Skip to content

searchChats

Function · TDLib 1.8.67 · d1085f9c

Searches for the specified query in the title and username of already known chats. This is an offline method. Returns chats in the order seen in the main chat list

searchChats(
  query: string,
  type_filter: SearchChatTypeFilter,
  limit: int32
) → Chats

query

string

Query to search for. If the query is empty, returns up to 50 recently found chats

type_filter

SearchChatTypeFilter

Additional filter for type of the chats to be returned; pass null to search for chats of all types

limit

int32

The maximum number of chats to be returned