How to Install BJS Codes on Bots.Business
What You'll Need
- A ZadoSource account (free)
- A Bots.Business account
- Your bot created on Bots.Business
- The bot token from @BotFather
Step 1: Find a BJS Code
Browse the BJS section on ZadoSource. Use filters to find codes by category, popularity, or date. Click on any code to view its details.
Step 2: Download the Code
If the code is downloadable, click the 'Download Code' button. You'll receive a ZIP file containing the BJS code and any additional files.
Step 3: Extract the Files
Extract the ZIP file to access the BJS code files. You'll typically find .js files that contain the actual bot code.
Step 4: Add Commands to Your Bot
Log into your Bots.Business account, open your bot, and navigate to the Commands section. Create new commands and paste the code from the downloaded files.
// Example BJS code structure
// Command: /start
Bot.sendMessage("Welcome to your new bot!");
// Command: /help
Bot.sendMessage("Available commands: /start, /help");
Step 5: Test Your Bot
After adding the commands, test your bot on Telegram to ensure everything works correctly. Most codes include a /start command to begin.
Telegram View Codes
Some codes are shared as Telegram posts instead of downloads. For these, simply click 'View on Telegram' to see the code directly in the Telegram channel.
Troubleshooting
- Make sure you have the correct command names
- Check that your bot token is valid
- Verify that the code is compatible with your Bots.Business version
📚 Source
This guide is based on the official ZadoSource BJS section. Browse BJS codes for your bots.