Skip to main content
Module

x/grammy_parse_mode/mod.ts

Safely format messages and keep their source code maintainable.
Latest
import * as grammyParseMode from "https://deno.land/x/grammy_parse_mode@1.9.0/mod.ts";

Classes

Represents the formatted string after the parsing.

Variables

Formats the Stringable as a blockquote. Cannot be nested.

Formats the Stringable as bold. Incompatible with code and pre.

Formats the Stringable as inline code. Cannot be combined with any other formats.

Inserts a custom emoji.

This is the format tagged template function. It accepts a template literal containing any mix of Stringable and string values, and constructs a FormattedString that represents the combination of all the given values. The constructed FormattedString also implements Stringable, and can be used in further fmt tagged templates.

Hydrates a context with an additional set of reply methods

Formats the Stringable as italic. Incompatible with code and pre.

Formats the Stringable as a link. Incompatible with code and pre.

Formats the Stringable`` as a Telegram link to a chat message. Incompatible with codeandpre`.

Formats the Stringable as an internal Telegram link to a user. Incompatible with code and pre.

Creates a new transformer for the given parse mode.

Formats the Stringable as a code block. Cannot be combined with any other formats.

Formats the Stringable as a spoiler. Incompatible with code and pre.

Formats the Stringable as a strikethrough. Incompatible with code and pre.

Formats the Stringable as a underline. Incompatible with code and pre.

Interfaces

Objects that implement this interface implement a .toString() method that returns a string value representing the object.

Type Aliases

T
ParseModeContext
deprecated

Context flavor for Context that will be hydrated with an additional set of reply methods from hydrateReply