Getting Started
Install the package, choose a name, add an icon.
01 — Install
Installation
pip install telyx
# JavaScript
npm install @telyx/core
# React
npm install @telyx/reactPackages are built locally; PyPI/npm publication is still pending.
02 — Pick an icon
For example, wallet. Display labels are translated; the code name stays wallet.
Formats
wallet
tx-wallet
tx.wallet
<tx-wallet>
:tx-wallet:03 — Use tx
Python
import telyx as tx
text = f"{tx.wallet} Баланс"
await message.answer(text, parse_mode="HTML")For an aiogram button — no unpacking needed:
Python
from aiogram.types import InlineKeyboardMarkup
keyboard = InlineKeyboardMarkup(inline_keyboard=[
[tx.wallet.button("Баланс", callback_data="balance")]
])React
import { TelyxIcon } from "@telyx/react";
<TelyxIcon name="wallet" size={24} />React renders web icons; Telegram receives HTML from tx. Set assetBaseUrl on external sites.