Custom emoji
Your own emoji in bot messages
Telegram supports custom (premium) emoji in buttons and messages. To use them, the bot must have a paid username (Fragment) or the bot owner must have an active Telegram Premium subscription.
How to get an emoji ID
- Send the desired custom emoji to @getidsbot or
@RawDataBot. - The bot will reply with message details including the
custom_emoji_idfield.
Syntax
Two formats are supported directly in .ftl key values.
Full format
btn-example = <tg-emoji emoji-id="5406756500108501710">🎁</tg-emoji> Button textShort format
btn-example = <e id="5406756500108501710">🎁</e> Button textThe fallback text inside the tag (a plain emoji) is shown on clients that don't support custom emoji. It is recommended to always provide it.