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

x/grammy_parse_mode/format.ts>fmt

Formatting messages simplified
Go to Latest
variable fmt
import { fmt } from "https://deno.land/x/grammy_parse_mode@1.7.1/format.ts";

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.

type

(rawStringParts: TemplateStringsArray | string[], ...stringLikes: Stringable[]) => FormattedString