Tutorials¶
Building a Telegram bot can feel overwhelming, but you don't have to start by writing complex database connections and API loops. In fact, on TeleBotHost, you can build full-blown interactive menus using just the dashboard fields—no code required!
When you need your bot to make smart decisions, you can sprinkle in JavaScript Logic to handle the heavy lifting.
The Hands-On Series¶
Work through these lessons in order. Each one is a quick, five-minute step that builds directly on the previous one:
- Your First Bot — Create a simple
/startcommand that says hello. - Adding a Keyboard — Put reply buttons on the screen so users can tap instead of typing.
- Using Aliases — Make one command respond to multiple different button labels or typos.
- Handling User Input — Pause the flow, ask the user a question, and wait for their reply.
- Handling Callbacks — Add clean inline buttons directly inside message bubbles.
- Wildcard Command — Set up a safety net command to catch any random input your bot doesn't understand.
Concept Guides¶
If you're curious about how things work under the hood, these guides explain the mechanics. We recommend building your first bot before reading these:
- Command Flow — The big picture of how commands and updates flow.
- Command Fields — A breakdown of what every field in the command editor does.
- Execution Flow — Step-by-step pipeline of how code runs (and how
@and@@work). - Matching & Priority — How the bot decides which command to run.
- Special Commands — Learn about
/start,@,!,@@, and*. - Dynamic Handlers — Handle background updates like when someone joins a channel.
- Markdown & Formatting — Make your bot's text bold, italic, or pre-formatted.
- Public Web Commands — Host a public website directly from your bot!