mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2026-05-08 17:40:02 +00:00
StickerInfoBot
A multiplatform bot (JVM + JS) that displays detailed information about stickers and custom emoji.
Functionality
When the user sends a sticker, the bot replies with the sticker set name, title, and sticker type. When the user sends a text message containing custom emoji entities, the bot fetches the corresponding sticker objects and sends back their information.
Arguments
| Position | Value | Description |
|---|---|---|
| 1 | BOT_TOKEN |
Telegram bot token |
Optional flags (any order):
| Value | Description |
|---|---|
debug |
Enable verbose debug logging |
testServer |
Connect to the Telegram test server instead of production |
Bot Commands
None.
Capabilities
- Detects incoming sticker messages and calls
getStickerSetto retrieve set metadata - Reports sticker set name, title, and type (regular / mask / custom emoji)
- Scans text message entities for
CustomEmojitypes - Fetches the corresponding sticker objects via
getCustomEmojiStickers - Sends sticker information back as a formatted reply
- Shared
commonMainlibrary with JVM and JS launchers - Runs via long polling
Launch
JVM
./gradlew :StickerInfoBot:jvm_launcher:run --args="BOT_TOKEN"