Interface SearchStringsByPrefix

Searches specified query by word prefixes in the provided strings. Returns 0-based positions of strings that matched. Can be called synchronously. Request type for Tdjson#searchStringsByPrefix.

interface SearchStringsByPrefix {
    @type: "searchStringsByPrefix";
    limit: number;
    query: string;
    return_none_for_empty_query?: boolean;
    strings: string[];
}

Properties

@type: "searchStringsByPrefix"
limit: number

The maximum number of objects to return.

query: string

Query to search for.

return_none_for_empty_query?: boolean

Pass true to receive no results for an empty query.

strings: string[]

The strings to search in for the query.