рдмрд┐рдирд╛ рдХрд┐рд╕реА рд╕реАрдорд╛ рдХреЗ рдЕрдкрдиреЗ рд╕реНрд╡рдпрдВ рдХреЗ рд╕рд░реНрд╡рд░ рдкрд░ рдЕрднреНрдпрд╛рд╕ рдХрд░реЗрдВ: рд╡реЗрдмрд╕рд╛рдЗрдЯ, рдмреЙрдЯ, рд╕рд╛рдордЧреНрд░реА рдФрд░ рдСрдЯреЛрдореЗрд╢рди рдПрдХ рд╣реА рд╕реНрдерд╛рди рдкрд░ред
рдЕрдкрдиреА рдпрд╛рддреНрд░рд╛ рд╢реБрд░реВ рдХрд░реЗрдВWeek 4 Guide: Telegram Bot with Gemini
Build Your Telegram Bot
This week you bring your AI assistant to life. Your bot will interact with customers 24/7, powered by Claude Code.
What You Will Build:
- Telegram bot registered with @BotFather
- Python bot using python-telegram-bot
- Claude Code CLI integration for AI responses
- Running as systemd service (24/7)
Step-by-Step Instructions:
# Step 1: Create bot with BotFather # Open Telegram, search @BotFather # Send: /newbot # Follow prompts, save your BOT_TOKEN # Step 2: Setup Python environment cd ~/myproject/bot python3 -m venv venv source venv/bin/activate pip install python-telegram-bot==20.7 # Step 3: Create your bot
# Step 4: Add your token export BOT_TOKEN="your_token_here" # Step 5: Test the bot python3 bot.py # Step 6: Create systemd service (24/7 running)
sudo systemctl enable mybot sudo systemctl start mybot
Niche-Specific Bot Features:
- Content: /generate [topic] - Generate content on demand
- Podcast: /analyze - Accept audio URL, return key moments
- Lead Gen: Qualification conversation flow
- Community: FAQ handling, welcome new members
Badge: Bot Master (+500 XP)
ЁЯЦея╕П
ЁЯТм Claude is Already Running - Just Chat!
Your AI assistant is in chat mode 24/7. No commands needed - just type what you want to build, and Claude will do it. It's like texting with an expert developer who has full access to your server.
Your Personal AI Terminal
рдмрд┐рдирд╛ рдХрд┐рд╕реА рд╕реАрдорд╛ рдХреЗ рдЕрдкрдиреЗ рд╕реНрд╡рдпрдВ рдХреЗ рд╕рд░реНрд╡рд░ рдкрд░ рдЕрднреНрдпрд╛рд╕ рдХрд░реЗрдВ: рд╡реЗрдмрд╕рд╛рдЗрдЯ, рдмреЙрдЯ, рд╕рд╛рдордЧреНрд░реА рдФрд░ рдСрдЯреЛрдореЗрд╢рди рдПрдХ рд╣реА рд╕реНрдерд╛рди рдкрд░ред
рдЕрдкрдиреА рдпрд╛рддреНрд░рд╛ рд╢реБрд░реВ рдХрд░реЗрдВ