JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 516
  • Score
    100M100P100Q98306F

Library for formatting text for Telegram Bot API

Package Exports

  • @gramio/format
  • @gramio/format/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gramio/format) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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

See Documentation