Tutorials¶
Work through these in order if you're new to TBL. Each one builds on the last — by the end you'll have a bot that handles commands, buttons, aliases, typed input, and unknown messages.
You don't need to write much code at first. TeleBotHost lets you get a working bot using only the command editor. Logic comes later, when you need it.
The series¶
- Command Structure — how TBL thinks about triggers, answers, logic, and the special commands (
@,!,*, and the rest). Read this before touching anything else. - Your First Bot — a
/startcommand that actually replies. Takes about five minutes. - Adding a Keyboard — replace typing with tap-able buttons.
- Using Aliases — one command, several ways to trigger it.
- Handling User Input — wait for the user's next message and use it.
- Wildcard Command — catch everything that doesn't match anything else.
Before you start¶
Make sure you've added a bot on TeleBotHost and launched it at least once. The tutorials assume you can open the Commands panel and see your bot respond on Telegram.