tinygram โ tiny but powerful Telegram bot client for Dart ๐

Minimalistic yet capable wrapper for sending messages and files via the Telegram Bot API.
Perfect for:
- bots
- logging tools
- dev alerts
- CI/CD notifications
โจ Features
- ๐ฉ Send plain text or MarkdownV2-formatted messages
- ๐งพ Pretty-print and send JSON blocks
- ๐ Upload files (images, logs, documents)
- ๐ Fetch updates to discover chat/channel IDs
โ ๏ธ Limitations
โข Message length: up to 4096 characters
โข File size: up to 50 MB (unless your bot is allowed 2 GB)
๐ Getting Started
- Open Telegram and start a chat with @BotFather
- Create a new bot using
/newbot - Set a name and username
- Add the bot to a group or channel
๐ How to Get Chat ID
Use tinygram.getUpdates() after sending a message in your group:
await bot.getUpdates();
Find the "chat" object in the response and extract the id.