@gramio/format
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@gramio/format

Library for formatting text for Telegram Bot API. Used under the hood by GramIO framework but it framework-agnostic.

npm JSR JSR Score

Usage

bot.api.sendMessage({
    chat_id: 12321,
    text: format`${bold`Hi!`}

		Can ${italic("you")} help ${spoiler`me`}?
	
			Can you give me a ${link("star", "https://github.com/gramiojs/gramio")}?`,
});

example

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    70
    • latest

Version History

Package Sidebar

Install

npm i @gramio/format

Weekly Downloads

192

Version

0.1.2

License

none

Unpacked Size

34.5 kB

Total Files

6

Last publish

Collaborators

  • skravets