🎮 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).

Start~$6/moGrowing~$70/mo
Post on 𝕏
AI coding tool

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)

Bot library

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

Backend / bot hosting

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

AI model API

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)

  1. Message @BotFather on Telegram to create the bot and copy its token.
  2. In Cursor, ask for a minimal grammY bot with one slash command (e.g. /ping), run it locally.
  3. Wire the bot's command to OpenAI API so it can answer or summarise.
  4. Deploy to Railway from GitHub, keeping the token in environment variables.
  5. 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.