Skip to main content

Built and signed on GitHub Actions

Library for formatting text for Telegram Bot API

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 months ago (0.1.5)
f
blockquote

Format text as blockquote. Cannot be nested.

f
bold

Format text as bold. Cannot be combined with code and pre.

f
code

Format text as code. Cannot be combined with any other format.

f
customEmoji

Insert custom emoji by their id.

f
expandableBlockquote

Format text as expandable blockquote. Cannot be nested.

f
format

Template literal that helps construct message entities for text formatting.

f
formatSaveIndents

Template literal that helps construct message entities for text formatting.

v
FormattableMap

A set of methods that decompose the FormattableString into a string and an array of entities for further sending to the Telegram Bot API

c
FormattableString

Class-helper for work with formattable entities

f
getFormattable
No documentation available
f
italic

Format text as italic. Cannot be combined with code and pre.

f
join

Helper for great work with formattable arrays. ([].join break styling) Separator by default is ,

f
mention

Format text as mention. Cannot be combined with code and pre.

f
pre

Format text as pre. Cannot be combined with any other format.

f
spoiler

Format text as spoiler. Cannot be combined with code and pre.

f
strikethrough

Format text as strikethrough. Cannot be combined with code and pre.

T
Stringable

Type which contains a string or has the ability to result in a string object

f
underline

Format text as underline. Cannot be combined with code and pre.