Skip to content

TBL Documentation

Docs for building Telegram bots on TeleBotHost with TBL (Tele Bot Language).

TeleBotHost runs your bot in the cloud. TBL is the code you write in the command editor — JavaScript-shaped syntax, built-in Telegram tools, no server to manage.

New here?

  1. Getting Started — account, BotFather token, launch your bot
  2. Tutorials — six short lessons from /start to wildcard handlers
  3. What is TBL? — how commands run and why the model looks the way it does

Reference sections

Global Variablesuser, chat, update, message, and the rest of the context available in every command. Read this before diving into instances.

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 (read after the Bot and Api overviews)
  • HTTP — outbound requests to external services
  • User / Global — per-user and bot-wide data
  • msg — reply, edit, delete on the current message
  • Webhooks / Webapps — HTTP endpoints tied to commands
  • res — JSON, HTML, redirects from webhook/Webapp commands

Modules and Libraries — lodash, jwt, date helpers, Telegram utilities, and other preloaded tools.

Outside these docs