The raw message text.
The mentions found, with their display text and character offsets.
out of chat message text.
Mentions are encoded as [@display](sessionId).
import { parseMentions } from "@urth/metatell-sdk/chat";
parseMentions("hi [@Alice](a1b2c3d4)"); // [{ sessionId, display, start, end }]
Parse