🎮 Shared stack · Updated 2026-11-23
“A Telegram bot in TypeScript that answers questions with AI”
The AI and dev tools to build it, why each one fits, rough costs and a starter plan. Remix this idea in the matchmaker →
Telegram bot
Looks like a Telegram bot project. Here's your 4-tool party (stack).
Cursor intermediate
You'll write the Telegram bot logic with AI help. AI-first code editor. Best all-round pick for writing and fixing real code with AI.
💸 Free tier; Plus $8/mo (Grok models only); Premium $30/mo (third-party models billed at API list price)
grammY intermediate
Modern TypeScript/JavaScript framework for Telegram bots with a big plugin ecosystem (menus, conversations, rate limits).
💸 Free, open source (MIT); the Telegram Bot API itself is free
Railway beginner
Bots need to stay online 24/7. Deploy any backend, bot, worker or database from GitHub in minutes. Ideal for always-on Discord bots and APIs.
💸 Free $0 plan for small apps; Hobby $5/mo minimum (includes $5 usage); Pro $20/mo minimum
OpenAI API intermediate
GPT models for chat, tool-calling agents, embeddings and vision.
💸 Pay per use: GPT-6 Luna $0.10/$0.50, GPT-6.2 Sol $2/$10, GPT-6.2 Astra $8/$40 per 1M input/output tokens; small apps often cost a few $/mo
Your first quest (starter plan)
- Message @BotFather on Telegram to create the bot and copy its token.
- In Cursor, ask for a minimal grammY bot with one slash command (e.g. /ping), run it locally.
- Wire the bot's command to OpenAI API so it can answer or summarise.
- Deploy to Railway from GitHub, keeping the token in environment variables.
- Share it with a few friends or a Telegram group and collect feedback before adding features.
Rough estimate from each tool's entry plan. Check pricing pages, and note that usage-based APIs vary. Some links may be affiliate links. How we make money.
From the guide: Build a Telegram bot with AI: alerts, AI chat and more
Recommendations come from BuildLobby's rules engine; the same idea gives the same stack in the matchmaker.