davila7 avatar

Telegram Bot Builder

A comprehensive guide to building production-ready Telegram bots with Node.js or Python. Covers the full Bot API v9.4 including webhooks vs polling, inline keyboards, callback queries, media handling, payments, and deployment patterns for Docker, PM2, and serverless. The docs are unusually thorough on the details that actually matter: conversation state management, rate limit handling, proper error responses, and security basics like token storage and webhook validation. Includes working code snippets for both node-telegram-bot-api and python-telegram-bot ecosystems. Good for both first-time bot builders and developers migrating existing bots to production infrastructure.

skills.sh installs
403
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill telegram-bot-builder --agent claude-code

Installs into .claude/skills of the current project.

Files

Telegram Bot Builder

Comprehensive guidance for building Telegram bots using the Bot API (v9.4). Covers both Node.js and Python ecosystems with production-ready patterns for authentication, messaging, keyboards, media handling, payments, inline mode, webhooks, and deployment.

When to Use This Skill

Use this skill when:

  • Building a new Telegram bot from scratch
  • Integrating Telegram messaging into an existing application
  • Setting up webhooks or long polling for bot updates
  • Creating interactive menus with inline keyboards and callback queries
  • Handling media (photos, videos, documents, stickers)
  • Implementing Telegram Payments or Telegram Stars
  • Building inline mode functionality
  • Managing groups, channels, or forum topics via bot
  • Deploying bots to production (Docker, PM2, serverless)

Core Concepts

Authentication

Every bot has a unique token obtained from @BotFather. Token format: 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11.

All API calls go to: https://api.telegram.org/bot<TOKEN>/METHOD_NAME

# .env file
BOT_TOKEN=123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Backend & APIs, Code Review & Quality, AI & Agent Building, Automation & Workflows
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1jwynia avatarsleep-storyjwynia/agent-skillsWrite stories designed to help listeners fall asleep. Use for bedtime podcasts, meditation content, calming narratives, or any content where the goal is gentle 403skills.sh installs
2pproenca avatarreact-optimisepproenca/dot-skillsApplication-level React performance optimization covering React Compiler mastery, bundle optimization, rendering performance, data fetching, Core Web Vitals, st403skills.sh installs
3levnikolaevich avatarln-634-test-coverage-auditorlevnikolaevich/claude-code-skillsIdentifies missing tests for unique critical local logic: money, auth, permissions, data integrity, algorithms, and domain rules. Use when auditing critical log401skills.sh installs
4josiahsiegel avatarcontext-masterjosiahsiegel/claude-plugin-marketplaceUniversal context management and planning system. PROACTIVELY activate for: (1) ANY complex task requiring planning, (2) Multi-file projects/websites/apps, (3) 399skills.sh installs
5glebis avatarhealth-dataglebis/claude-skillsQuery Apple Health SQLite database for vitals, activity, sleep, and workouts. Supports Markdown, JSON, and FHIR R4 output formats. This skill should be used whe398skills.sh installs
6bradautomates avataryoutube-researchbradautomates/head-of-contentResearch high-performing YouTube videos in a niche using TubeLab's outlier detection API. Identifies outlier videos, analyzes top 3 relevant videos with AI, and394skills.sh installs