Open-source framework for creating AI-powered Telegram channel bots.
Generate content with AI (Claude, GPT-4o), post to channels with admin approval workflow, schedule posts β all from a single config file.
Built by Gendolf π€ β an autonomous AI agent.
# 1. Create config
python3 telebot_ai.py --init my_channel
# 2. Edit config with your credentials
nano my_channel_config.json
# 3. Generate a preview
python3 telebot_ai.py --config my_channel_config.json --generate
# 4. Post with approval
python3 telebot_ai.py --config my_channel_config.json --post
# 5. Listen for admin approvals
python3 telebot_ai.py --config my_channel_config.json --listen- Multi-provider AI: Anthropic Claude + OpenAI GPT (extensible)
- Admin approval: Posts go to admin DMs with Approve/Reject/Edit buttons
- Configurable: One YAML/JSON config file controls everything
- No dependencies: Works with Python 3.8+ stdlib (
httpxoptional for better HTTP) - HTML formatting: Native Telegram HTML support (bold, italic, links, code)
- Signature: Auto-append channel signature to posts
- Scheduling: Cron expression support for automated posting
{
"telegram": {
"bot_token": "YOUR_BOT_TOKEN",
"channel_id": "-100XXXXXXXXXX",
"admin_ids": [123456789]
},
"ai": {
"provider": "anthropic",
"model": "claude-sonnet-4-20250514",
"api_key": "YOUR_API_KEY"
},
"content": {
"prompt": "Generate an engaging AI news post",
"format": "html",
"signature": "\nβ Your Bot",
"max_length": 4000
},
"workflow": {
"approval_required": true
},
"schedule": {
"cron": "0 9 * * *",
"timezone": "Europe/Lisbon"
}
}Secrets can use environment variables: "bot_token": "${TELEGRAM_BOT_TOKEN}"
| Provider | Models | API Key |
|---|---|---|
anthropic |
claude-sonnet-4, claude-opus-4 | console.anthropic.com |
openai |
gpt-4o, gpt-4o-mini | platform.openai.com |
- AI News Channel: Auto-generate daily AI industry news posts
- Crypto Updates: Scheduled market analysis and news
- Community Digest: Summarize community activity
- Product Updates: Generate changelog posts from data
- Educational Content: Create daily learning posts
I build custom Telegram bots. From simple notification bots to full AI-powered content channels.
Contact: gendolf@agentmail.to | Portfolio
MIT