Skip to content

searchStringsByPrefix

Function · TDLib 1.8.67 · d1085f9c

Searches specified query by word prefixes in the provided strings. Returns 0-based positions of strings that matched. Can be called synchronously

searchStringsByPrefix(
  strings: list of string,
  query: string,
  limit: int32,
  return_none_for_empty_query: Bool
) → FoundPositions

strings

list of string

The strings to search in for the query

query

string

Query to search for

limit

int32

The maximum number of objects to return

return_none_for_empty_query

Bool

Pass true to receive no results for an empty query