Setting Up Your Bot with TBL Codes

A complete beginner-friendly guide to add your first TBL (Tele Bot Lang) code to your Telegram bot.

Introduction to TBL

TBL (Tele Bot Lang) is a lightweight scripting language designed for Telegram bot development. Its JavaScript-inspired syntax and built-in functions make creating bots fast and easy, without external dependencies.

Key Features of TBL

Step 1: Access Your Bot

Ensure your bot is already added to TeleBot Host. Go to the Bot List and click on your bot's name to open its management panel.

Bot List

Step 2: Open the Commands Tab

Navigate to the Commands tab. You should see the /start command created in your first tutorial.

Commands Tab

Step 3: Open the Code Editor

Click on the command name (/start) to open the TBL code editor.

Code Editor Open

Step 4: Add Your First TBL Code

Type the following simple code in the editor to send a message:

Bot.sendMessage("Hello! This message is from Bot codes");
Add TBL Code

Step 5: Save Your Code

Click the Save button at the bottom to store your changes.

Step 6: Test Your Bot

Go to Telegram, open your bot, and send /start. Your bot should reply with the message you added in TBL.

Test Bot

Congratulations!

🎉 You have successfully added your first TBL code to your bot. Explore the documentation to unlock more commands, inline keyboards, and advanced bot features.

Previous
Adding your first bot