class FormattedString
implements Stringable
Re-export
import { FormattedString } from "https://deno.land/x/grammy_parse_mode@1.10.0/mod.ts";
Represents the formatted string after the parsing.
Constructors
new
FormattedString(text: string, entities: MessageEntity[])Creates a new FormattedString
. Useful for constructing a
FormattedString
from user's formatted message
// Constructing a new `FormattedString` from user's message
const userMsg = new FormattedString(ctx.message.text, ctx.entities());
Properties
entities: MessageEntity[]
Format entities for this FormattedString