- Home
- Skills
- Workflow Automation
- Telegram AI Chatbot with OpenRouter
Telegram AI Chatbot with OpenRouter
Ready-to-run Telegram bot that chats through any OpenRouter model, with memory, commands and setup guide.
$10
Telegram AI Chatbot with OpenRouter
Example session with this skill installed
Set up a Telegram bot that uses a free OpenRouter model.
- Read your context and instructions
- Compiled the telegram ai chatbot
Copies bot.py and requirements.txt into your project, walks you through getting a BotFather token and OpenRouter key, sets OPENROUTER_MODEL to a :free model, and starts the bot.
Connects securely to your tools. The creator never sees your data.
About this skill
Ships a working, bug-fixed Telegram bot (scripts/bot.py) and walks the user from zero to a running bot.
- Collect two secrets from the user (never ask them to paste keys into files you commit or share):
- Telegram bot token: message @BotFather on Telegram, send
/newbot, copy the token. - OpenRouter API key: openrouter.ai/keys.
- Telegram bot token: message @BotFather on Telegram, send
- Copy the bundled files
scripts/bot.pyandscripts/requirements.txtinto the user's project folder. Run the bundled script as shipped; only change it if the user asks for customization. - Install dependencies:
pip install -r requirements.txt(Python 3.9+). - Set environment variables, then run:
- macOS/Linux:
export TELEGRAM_TOKEN=... OPENROUTER_API_KEY=...thenpython bot.py - Windows PowerShell:
$env:TELEGRAM_TOKEN="..."; $env:OPENROUTER_API_KEY="..."; python bot.py
- macOS/Linux:
- Test: open the bot in Telegram, send
/start, then a normal message.
| Variable | Required | Default | Purpose |
|---|---|---|---|
TELEGRAM_TOKEN | yes | none | Bot token from BotFather |
OPENROUTER_API_KEY | yes | none | OpenRouter key |
OPENROUTER_MODEL | no | openrouter/auto | Any model id from openrouter.ai/models |
MAX_HISTORY | no | 20 | Messages remembered per user |
SYSTEM_PROMPT | no | friendly concise assistant | Bot personality |
Free models: choose an id ending in :free from openrouter.ai/models. Note openrouter/auto routes to paid models and is not free.
Conversation memory is in-process and resets on restart. Text messages only (no images, voice or files). Polling mode, single instance.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Accounts
TelegramTelegram bot token
OpenRouter API key
- Software
Python 3.9+
Permissions
Allowed Hosts
Reads TELEGRAM_TOKEN and OPENROUTER_API_KEY from environment variables. Keys are never written to disk.
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.