惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
Blog — PlanetScale
Blog — PlanetScale
B
Blog
GbyAI
GbyAI
爱范儿
爱范儿
月光博客
月光博客
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
腾讯CDC
MyScale Blog
MyScale Blog
V
Visual Studio Blog
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I Built 9 Production-Ready Telegram Bots in Python (Open ...
Castanderness · 2026-06-27 · via DEV Community

Castanderness

I Built 9 Production-Ready Telegram Bots in Python

TL;DR: 9 open-source Telegram bot templates — AI assistant, booking, crypto alerts, job channel, price monitor, restaurant, tutor, survey, auto-content. All free on GitHub.

The Bots

1. AI Assistant Pro (with subscription model)

Full freemium — 20 free messages/day, unlimited for premium users. SQLite database, admin panel.

@dp.message(F.text)
async def handle_message(message: Message):
    if not db.is_premium(user_id) and db.get_msg_count_today(user_id) >= FREE_DAILY_LIMIT:
        await message.answer("Limit reached!", reply_markup=premium_keyboard())
        return
    response = client.messages.create(
        model="claude-haiku-4-5-20251001",
        max_tokens=1024,
        messages=conversations[user_id],
    )
    await message.answer(response.content[0].text)

2. Appointment Booking Bot

Barbershops, clinics, tutors. Interactive date/time picker, no double-booking, admin notifications.

3. Crypto Price Alert Bot

Set targets, get notified when BTC/ETH/SOL hits them. Free CoinGecko API, no key needed.

async def check_alerts():
    alerts = get_all_active_alerts()
    coins = list({a[2] for a in alerts})
    prices = get_prices(coins)
    for alert_id, user_id, coin, direction, target in alerts:
        price = prices.get(coin)
        hit = (direction == "above" and price >= target) or (direction == "below" and price <= target)
        if hit:
            await bot.send_message(user_id, f"Alert! {coin} hit ${price:,.2f}")

4-9. More bots

Job vacancy channel (HH.ru API), Avito price monitor, restaurant reservations, English tutor, survey→Excel, auto-content scheduler.

Tech Stack

  • Python 3.12 + aiogram 3.7
  • SQLite (survives restarts)
  • Anthropic Claude Haiku (~$0.001/1000 messages)
  • APScheduler for cron jobs

GitHub

All 9 bots open source: https://github.com/Castanderness/telegram-bots-portfolio

Portfolio: https://castanderness.github.io/telegram-bots-portfolio/portfolio/

Available for freelance — $49+ per bot, 2-5 day delivery.