Quick start
From an icon name to a message.
1. Choose a name
For example, wallet.
2. Use tx
Pass parse_mode="HTML" for a Telegram message.
Python
import telyx as tx
text = f"{tx.wallet} Баланс: 500"
print(text)3. Button
In aiogram, pass the dictionary directly into the keyboard.
Python
from aiogram.types import InlineKeyboardMarkup
keyboard = InlineKeyboardMarkup(inline_keyboard=[
[tx.wallet.button("Баланс", callback_data="balance")]
])