Get your API key

Beginner · 5 lessons · 43 min

Build a Telegram bot for a small business

Menu, orders, reminders and AI answers in the app your customers already use, built by your coding agent.

Who it's for

Students, freelancers and office workers with no coding background who want a bot for a tiffin service, shop, tuition class or college club.

What you'll build

A Telegram bot for "Sharma Tiffin Service": FAQ answers, tomorrow's lunch orders with buttons, a daily reminder for customers who opted in, new orders sent to the owner, hosted online with a webhook, and AI replies with a daily cap.

Why this course

Beginners get a bot answering on their laptop quickly, then get stuck: it stops when the laptop is shut, two copies fight with a 409 Conflict error, or a free host puts it to sleep. Forum threads and library issues keep asking exactly these questions, and Telegram's own tutorial warns that your computer might not always be online.

Take first: Prompting for AI coding, APIs and databases, explained by building

Lessons in this course

  1. 1Plan your bot and create it with BotFatherWhat a bot can and cannot do, a one-page command plan with a Prompt Card, creating the bot in @BotFather, and treating the token like a password. 8 min Free
  2. 2Run your first bot on your laptopNode.js and grammY, the token in .env, long polling, FAQ answers from a file the owner can edit, the command menu, and the 409 Conflict error. 9 min Log in to open
  3. 3Buttons, orders and daily remindersOrder tomorrow's lunch in four taps, save orders, alert the owner, and send reminders only to people who said yes, within Telegram's limits. 9 min Log in to open
  4. 4Keep it online: webhooks and hostingWhy the bot dies when the laptop sleeps, polling vs webhook with a secret token, free and cheap hosts compared, where data lives, and debugging with getWebhookInfo. 9 min Log in to open
  5. 5AI replies with limitsAnswer free-text questions with AI grounded in the FAQ, keep orders and prices in code, cap daily use and spend, protect privacy, and test tricky messages. 8 min Log in to open
Next upAccept payments with RazorpayAdd a safe UPI and card payment to a client's site with your AI agent: orders, Checkout, signature checks, webhooks, refunds and going live.