Docs for AI agents¶
This site teaches TBL (Tele Bot Language) on TeleBotHost: JavaScript commands for Telegram bots.
How to use docs
- Find your topic in the table below (or in /llms.txt).
- Open one page:
https://docs.telebothost.com+ the path. - Write code from that page. Open a second page only if you still need it.
- Do not download or read every docs page.
Full list of every page path: llms.txt
If you need this → open this page¶
| You need… | Open |
|---|---|
| What TBL is | What is TBL? |
| Language / JS rules | The TBL Language |
| First steps for humans | Start here |
| Command name, answer, keyboard, aliases | Command fields |
| How a command is structured | Command structure |
Answer text / {{user.first_name}} | Answer field |
| Buttons under the chat input | Adding a keyboard |
| Buttons inside the message (inline) | Inline keyboards |
| Inline button presses / callbacks | Handling callbacks |
| Wait for the user’s next message | Need reply |
Catch-all * command | Using wildcard |
| Which command wins when several match | Matching order |
| Extra trigger names | Aliases |
| Markdown / HTML in answers | Markdown and formatting |
| Quick send to the current chat | Bot · Sending messages |
| Full Telegram methods / other chats | Api · Sending messages |
| When to use Bot vs Api | Bot vs Api |
user, chat, params, message, … | Globals |
Save data (db.bot / db.user / db.global) | Database |
| Call external HTTP APIs | HTTP · Making requests |
| Incoming webhooks | Webhooks |
| Mini apps / public web URLs | Webapps |
| Reply to web/webhook with HTML/JSON | res |
| Photos, files, voice | Media and files |
| Edit or delete a sent message | Editing messages |
| Message many users | Broadcasting |
Built-in helpers (modules.*) | Modules |
Hosted libraries (Libs.*) | TBL Libraries |
Sections (folder = topic)¶
| Folder | What is inside |
|---|---|
/getting-started-with-tbl/ | Commands, answer, keyboard, matching, tutorials |
/globals/ | Runtime variables (user, chat, params, …) |
/bot-instance/ | Short helpers for the current chat |
/api-instance/ | Full Telegram Bot API wrappers |
/msg-instance/ | Helpers on the current message |
/db-instance/ | Persistent storage |
/http-instance/ | Outbound HTTP |
/webhook-instance/ | Incoming signed webhooks |
/webapp-instance/ | Telegram Web Apps / public routes |
/res-instance/ | HTTP responses for web/webhook commands |
/modules/ | Extra JS modules |
/libs/ | TeleBotHost Libs.* packages |
Every path under those folders is listed in llms.txt.