web.telegram.org
Telegram — Search messages in a conversation
Input
query requiredThe text to search for inside the conversation.
peerId requiredThe conversation to search in, as returned by get_inbox. Required — this script drives the per-conversation search box, not Telegram's global search.
count optionalMaximum results to return from what the search dropdown has rendered.
Default: 30Output
count requiredHow many results were returned.
query requiredThe query that was searched.
peerId requiredThe peer id that was searched, read back from the address bar.
results requiredMatching messages in the order the search dropdown lists them (most recent first). Empty when nothing matched.
chatTitle optionalThe conversation title from the header, for a human-readable cross-check against peerId.
