Packages
@use-botify/icons
Typed Telegram custom emoji registry, smart icon objects, and inline keyboard button builders.
@use-botify/icons provides a zero-boilerplate, strongly typed layer for rendering Telegram Premium <tg-emoji> HTML tags and attaching custom emoji icons to inline keyboard buttons.
Installation
pnpm add @use-botify/iconsHighlights
- Validated built-in registry (
DEFAULT_ICONS) — Pre-verified icon keys and uniquecustomEmojiIdvalues with matching<name>Iconsmart objects. - Safe HTML rendering — Escapes fallback glyphs cleanly inside
<tg-emoji emoji-id="...">tags viarenderIconTag. - Inline button builders — Construct grammY callback and URL buttons with custom emoji icons from registry keys or smart icon objects.
- Extensible registries — Combine built-in defaults with your project's own icons captured via
@use-botify/plugins/icon-tools.