Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/grammy_parse_mode/mod.ts>FormattedString

Formatting messages simplified
Go to Latest
class FormattedString
implements Stringable
Re-export
import { FormattedString } from "https://deno.land/x/grammy_parse_mode@1.7.1/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

Properties

entities: MessageEntity[]

Format entities for this FormattedString

text: string

Plain text value for this FormattedString

Methods

Returns the string representation of this object