0xx9/telegram-agent-kit/telegram-bot-setup

Claude Code and agent skill by 0xx9/telegram-agent-kit

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Set up a new Telegram bot project with BotFather, env vars, folder layout, and safe defaults. Use when creating a bot, configuring BOT_TOKEN, or scaffolding a Telegram Bot API project.

Install

npx vskill@latest install 0xx9/telegram-agent-kit/telegram-bot-setup

SKILL.md

The same SKILL.md was published earlier as 0xx9/telegram-agent-kit/telegram-bot-setup.

Telegram Bot Setup

Use this skill when starting or restructuring a Telegram bot project.

Checklist

  1. Never commit BOT_TOKEN, API_ID, API_HASH, or .session files
  2. Create .env.example with placeholder values; load secrets via os.getenv or pydantic-settings
  3. Add .gitignore entries: .env, *.session, __pycache__/, .venv/
  4. Choose mode early:
  • Bot API (aiogram, python-telegram-bot) — official bots via @BotFather
  • MTProto userbot (Telethon, Pyrogram) — user account automation; higher ToS risk
  1. Do not mix Bot API token auth and MTProto session auth in one process without clear separation

BotFather setup

  1. Message @BotFather
  2. /newbot → pick name and username (must end in bot)
  3. Store token as BOT_TOKEN in .env
  4. Optional: /setprivacy, /setjoingroups, /setcommands before coding

Recommended project layout

my-bot/
├── .env.example
├── .gitignore
├── requirements.txt
├── README.md
├── bot/
│ ├── __init__.py
│ ├── main.py # entrypoint
│ ├── config.py # settings from env
│ ├── handlers/ # command & message handlers
│ └── middlewares/ # logging, throttling
└── tests/

Config pattern (Python)

python
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
bot_token: str
admin_ids: list[int] = []
model_config = {"env_file": ".env", "extra": "ignore"}
settings = Settings()

Polling vs webhook

ModeWhen
PollingLocal dev, quick prototypes
WebhookProduction, serverless, scale

Default to polling for dev, webhook for prod. See telegram-webhook-deploy skill for production.

Admin commands

  • Restrict destructive commands to ADMIN_ID or ADMIN_IDS from env
  • Never trust message.from_user.id alone for payment or privilege escalation without checking admin list

Deliverables

When setup is complete, provide:

  1. .env.example with all required vars documented
  2. Minimal runnable main.py that responds to /start
  3. README setup section (install, env, run)
  4. Confirmation that no secrets appear in tracked files

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/0xx9/telegram-agent-kit/telegram-bot-setup/badge)](https://verified-skill.com/skills/0xx9/telegram-agent-kit/telegram-bot-setup)

Something wrong with this skill or its page? Tell us.