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.
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")}?`,
});