- Home
- Skills
- 2025emma
- Vibe Coding Cn
- Telegram Dev
telegram-dev_skill
- Python
10.3k
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill 2025emma/vibe-coding-cn --skill telegram-dev- SKILL.md17.7 KB
Overview
This skill is a practical, full-stack guide to developing across the Telegram ecosystem, covering Bot API, Mini Apps (Web Apps), and MTProto/TDLib client development. It condenses workflows, code snippets, and configuration tips for messaging, media, payments, web apps, authentication, storage, sensors, and client operations. Use it to speed up implementation and avoid common pitfalls when building Telegram integrations.
How this skill works
The skill inspects and documents core APIs and typical developer flows: Bot API HTTP methods, WebApp JavaScript hooks, and TDLib/MTProto client operations. It provides runnable examples (Python/Flask, JavaScript WebApp) and server-side validation patterns for initData and webhooks. It also lists recommended libraries, deployment constraints, and security checks to validate and protect application data.
When to use it
- Building or prototyping a Telegram bot with messaging, keyboards, or media handling
- Creating a Telegram Mini App that runs inside the Telegram client and communicates with a bot
- Implementing webhooks or switching from long polling to a scalable webhook setup
- Integrating payments, invoices, or pre-checkout flows into chat experiences
- Developing a custom Telegram client or automating with TDLib/MTProto
- Adding device APIs (location, sensors) or biometric flows inside a Mini App
Best practices
- Prefer HTTPS webhooks over long polling for scalability and lower latency
- Always validate WebApp initData server-side using your bot token and HMAC checks
- Implement robust error handling and respect Telegram rate limits to avoid bans
- Keep Mini App bundles small, responsive, and theme-aware; use lazy loading for assets
- Never store secrets in client-side storage; use SecureStorage or server-side vaults
- Use existing SDKs (python-telegram-bot, aiogram, pyrogram, telegraf) to reduce boilerplate
Example use cases
- A customer service bot that receives media, forwards to backend storage, and replies with status
- A Mini App storefront inside Telegram that opens via keyboard button and completes payment via invoice
- A custom desktop client using TDLib to integrate with internal enterprise systems
- A location-based service using Mini App LocationManager and bot notifications
- An inline mode content provider offering searchable articles directly in chats
FAQ
Yes. WebApps and webhooks must be served over HTTPS with TLS 1.2+ and a publicly accessible URL.
When should I use TDLib instead of Bot API?
Use TDLib/MTProto when you need full client capabilities, multiple accounts, or features unavailable to bots; use Bot API for automated bots and simple integrations.