Build your own AI assistant on Telegram as a first project
A hobbyist built a personal AI assistant on Telegram as his first Claude Code project.
Source
@borisfounder on X · 2026-07-01
Written in our own words. Credit to the original author. Link checked 2026-10-14.
What they did
A hobbyist built a personal AI assistant on Telegram as his first Claude Code project.
Result (as claimed)
Done in five days.
Tools they used
Tools in our setup
Suggested in the setup steps below; not named in the source.
Cost: Discord and Telegram bot creation have no listed price; Railway trial ($5 credits) then Hobby $5/mo; OpenRouter pay per token.
Set it up
Create the bot app
Create a Discord bot project using discord.js with a .env.example containing DISCORD_TOKEN, DISCORD_APPLICATION_ID and OPENROUTER_API_KEY. Register a /ask slash command and a /help command. Never commit .env.
Add AI answers
Implement /ask by calling the OpenRouter chat completions API with OPENROUTER_API_KEY. Add a system prompt describing the community, a per-user rate limit, and a max token cap.
Telegram version (optional)
Port the bot to Telegram: create the bot with @BotFather, read TELEGRAM_BOT_TOKEN, and handle /ask with the same logic using setWebhook to our HTTPS URL.
Docs: core.telegram.org/bots/tutorial, core.telegram.org/bots/api#setwebhook
Deploy
Prepare the bot for Railway as a worker service and list the env vars to set. Add logging for errors.
Moderate and limit
Add an allowlist of channels, ignore messages from bots, and log usage so I can watch costs.
Copy the full setup prompt
Paste into your agent and it will walk you through the setup, asking before anything that sends, posts or spends.
You are helping me set up this AI use case end to end in Claude Code. Goal: Build your own AI assistant on Telegram as a first project What the original author did: A hobbyist built a personal AI assistant on Telegram as his first Claude Code project. Reported result (as claimed by the author): Done in five days. Source: https://x.com/borisfounder/status/2072353903841280253 Tools they used: Claude Code, Claude, Telegram Bot API, Python, Redis Category: Vibe coding & apps Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Codex. Goal: Build your own AI assistant on Telegram as a first project What the original author did: A hobbyist built a personal AI assistant on Telegram as his first Claude Code project. Reported result (as claimed by the author): Done in five days. Source: https://x.com/borisfounder/status/2072353903841280253 Tools they used: Claude Code, Claude, Telegram Bot API, Python, Redis Category: Vibe coding & apps Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Grok Bot. Goal: Build your own AI assistant on Telegram as a first project What the original author did: A hobbyist built a personal AI assistant on Telegram as his first Claude Code project. Reported result (as claimed by the author): Done in five days. Source: https://x.com/borisfounder/status/2072353903841280253 Tools they used: Claude Code, Claude, Telegram Bot API, Python, Redis Category: Vibe coding & apps Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
Related use cases
Make a vibe-coded SaaS feel designed, not generated
Refused default AI styling: picked a SaaS product she liked and had Claude in Chrome analyze it to build a design foundation first.
Build your first games as a designer, not a game dev
A 25-year designer built six games with Claude Code and Codex; getting them running was quick, making them fun took longer.
Ship your first iOS fitness app
Built Repstack, a no-gym calisthenics app with programs, rep counting, streaks and progress, using Claude Code.
Ship an iPhone app where the agent did design to submission
A teleprompter app was built with Claude Code covering interface, builds, testing, image assets and App Store submission.