
Telegram Dev
This is a comprehensive Telegram development guide covering Bot API, Mini Apps (Web Apps), and MTProto client development. You'll find practical code examples for everything from setting up webhooks and handling inline keyboards to building web apps with the Telegram.WebApp JavaScript API. The guide walks through message handling, payment integration, cloud storage, and haptic feedback with actual Python and JavaScript snippets you can adapt. It's structured around three core APIs with clear use cases for each, making it easy to jump to whichever part of the Telegram ecosystem you're building for. The webhook and inline mode examples are especially concrete, showing both Flask server setup and callback handling patterns.
- skills.sh installs
- 180
- GitHub stars
- 23.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add 2025emma/vibe-coding-cn --skill telegram-dev --agent claude-codeInstalls into .claude/skills of the current project.
Files
TRANSLATED CONTENT:
name: telegram-dev description: Telegram 生态开发全栈指南 - 涵盖 Bot API、Mini Apps (Web Apps)、MTProto 客户端开发。包括消息处理、支付、内联模式、Webhook、认证、存储、传感器 API 等完整开发资源。
Telegram 生态开发技能
全面的 Telegram 开发指南,涵盖 Bot 开发、Mini Apps (Web Apps)、客户端开发的完整技术栈。
何时使用此技能
当需要以下帮助时使用此技能:
- 开发 Telegram Bot(消息机器人)
- 创建 Telegram Mini Apps(小程序)
- 构建自定义 Telegram 客户端
- 集成 Telegram 支付和业务功能
- 实现 Webhook 和长轮询
- 使用 Telegram 认证和存储
- 处理消息、媒体和文件
- 实现内联模式和键盘
Telegram 开发生态概览
三大核心 API
-
Bot API - 创建机器人程序
- HTTP 接口,简单易用
- 自动处理加密和通信
- 适合:聊天机器人、自动化工具
-
Mini Apps API (Web Apps) - 创建 Web 应用
- JavaScript 接口
- 在 Telegram 内运行
- 适合:小程序、游戏、电商
-
Telegram API & TDLib - 创建客户端
- 完整的 Telegram 协议实现
- 支持所有平台
- 适合:自定义客户端、企业应用
Bot API 开发
快速开始
API 端点:
https://api.telegram.org/bot<TOKEN>/METHOD_NAME
获取 Bot Token:
- 与 @BotFather 对话
- 发送
/newbot - 按提示设置名称
- 获取 token
第一个 Bot (Python):
import requests
BOT_TOKEN = "your_bot_token_here"
API_URL = f"https://api.telegram.org/bot{BOT_TOKEN}"
Sponsors
Details
- Repository
- github.com/2025emma/vibe-coding-cn
- First seen
- Jun 3, 2026