Interface SearchQuote

Searches for a given quote in a text. Returns found quote start position in UTF-16 code units. Returns a 404 error if the quote is not found. Can be called synchronously. Request type for Tdjson#searchQuote.

interface SearchQuote {
    @type: "searchQuote";
    quote: FormattedText;
    quote_position: number;
    text: FormattedText;
}

Properties

@type: "searchQuote"

Quote to search for.

quote_position: number

Approximate quote position in UTF-16 code units.

Text in which to search for the quote.