TBL Documentation¶
Build Telegram bots in the cloud without managing servers — write commands, hit save, and TeleBotHost runs the rest.
TBL (Tele Bot Language) is JavaScript — real if, await, objects, the works — plus built-in extras for bot development: Bot, Api, user, chat, modules, Libs, and db. No boilerplate, no DevOps guilt.
New here?¶
Work through these in order — each step takes about five minutes:
- Getting Started — account, BotFather token, launch your bot
- Command Flow — how commands match, run, and respond
- Your First Bot —
/startin five minutes - What is TBL? — the command-driven execution model
New to TBL?
TBL is JavaScript with built-in bot extras — Bot, Api, user, chat, and more. The fastest on-ramp: Learning TBL — globals, instances, and your first Logic field in one page.
Command flow (structured guide)¶
| Topic | Page |
|---|---|
Command fields (Answer, Logic, keyboard, is_web) | Command Fields |
| Matching & priority | Matching & Priority |
Execution pipeline (@, !, @@) | Execution Flow |
| Markdown & formatting | Markdown & Formatting |
| Public web pages | Public Web Commands |
| Inline button callbacks | Handling Callbacks |
Full index: Command Flow overview · Tutorials
Reference sections¶
Global Variables — user, chat, update, message, and the rest of the context available in every command.
Instances — the objects you call in command logic:
- Bot — flow, storage, simple sends
- Api — full Telegram Bot API access
- Bot vs Api — when to use which
- HTTP — outbound requests to external services
- db — bot, user, and global storage
- msg — reply, edit, delete on the current message
- Webhooks / Webapps — HTTP endpoints tied to commands
- Public Web — static
is_webpages per bot - res — JSON, HTML, redirects from webhook/webapp commands
modules and Libraries — lodash, jwt, md2html, date helpers, and more.