Skip to content

searchQuote

Function · TDLib 1.8.67 · d1085f9c

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

searchQuote(
  text: FormattedText,
  quote: FormattedText,
  quote_position: int32
) → FoundPosition

text

FormattedText

Text in which to search for the quote

quote

FormattedText

Quote to search for

quote_position

int32

Approximate quote position in UTF-16 code units