What is BLP Language?
When you write commands in Bots.LT, you are writing Python code. However, you cannot use operations that could compromise the server:importstatements are blocked.open(),eval(), andexec()are blocked.time.sleep()is blocked.- Infinite loops (
while True) are blocked to prevent execution timeouts.
Global Variables
Whenever a command runs, the following variables are automatically available in your code. You do NOT need to define or import them.Context Variables
Bot Details
The following variables give you instant access to the current bot’s basic information. They are injected automatically — no function call needed.
For advanced platform data, you can also call
Bot.info() directly. This returns a DotDict with additional fields: owner_email, status, and userstat (total users). It also supports querying other bots you own.
BLP Example
The Bot Object
In BLP, the Telegram engine is injected as the Bot object. This object handles all API calls like Bot.sendMessage.
Note: For convenience and flexibility,Botandbotare 100% interchangeable aliases. Every method that works onBotalso works identically onbot.
BLP Example
Built-in Modules
We provide safe wrappers for common Python functionalities directly in the global scope.BLP Example
Data Storage Scopes
You do not need an external database. Bots.LT provides a blazing-fast built-in Key-Value (KV) store accessible via three scopes:
See the Data Storage & Wait States section for more details on these scopes.
