Telegram bot yang dibuat menggunakan library telegraf dengan system plugins mirip seperti botwa berbasis CJS
- Node.js V20 or higher
- NPM or Yarn
- Basic knowledge of JavaScript
- Clone this repository
git clone https://github.com/ERLANRAHMAT/telebot-wa.git
cd telebot-wa- Install dependencies
npm install- Configure bot token
- Get your bot token from @BotFather
- Start chat with BotFather
- Send
/newbot - Follow instructions to create bot
- Copy the token provided
- Edit
config.jsand paste your token:
global.token = "YOUR_BOT_TOKEN"- Start the bot
npm start- Configuration Owner
- Get your id and username owner from command
/getid - Copy your id and username , and then paste your id & username:
global.ownerid = ["your id"]
global.premid = ["your id"]
global.ownername = ["your username"]
global.owner = ["your phone number"]| Plan | Limit | Duration | Price (IDR) |
|---|---|---|---|
| Free | 30 | Forever | Free |
| Cheap1 | 3000 | 1 Month | 3,000 |
| Cheap2 | 4000 | 1 Month | 4,000 |
| Premium | 5000 | 1 Month | 5,000 |
| Vip | 8000 | 2 Months | 8,000 |
| Vvip | 12000 | 3 Months | 12,000 |
| Supreme | 20000 | 4 Months | 20,000 |
Full Plans: https://api.betabotz.eu.org/price#apikey
- Register at BetaBotz API
- Choose your plan and click "Buy Now"
- After payment, you'll receive your API key
- Configure your API key in
config.js:
global.APIs = {
lann: 'https://api.betabotz.eu.org',
}
global.lann = 'your apikey'| Plan | Limit | Duration | Price (IDR) |
|---|---|---|---|
| Basic V1 | 5000 | 1 Month | 5,000 |
| Premium V2 | 10000 | 2 Month | 10,000 |
| Starter V1 | 15000 | 1 Months | 15,000 |
| Starter V2 | 30000 | 2 Months | 30,000 |
Full Plans: https://api.betabotz.eu.org/price#akses
- Register at BetaBotz API
- Choose your plan and click "Buy Now"
- After payment, you'll receive your AksesKey
- Configure your API key in
config.js:
global.aksesKey = 'your aksesKey'- Start your bot
- Use command
/getipto get your bot's IP - Go to API Profile
- Navigate to: Settings -> Management IP
- Add your bot's IP to whitelist
This bot requires Node.js v20 or higher. Recommended hosting options:
- VPS with Node.js 20+
- Panel with Node.js 20+
- Managed Node.js hosting
- Heroku with Node.js 20+ buildpack
If you need reliable hosting, you can purchase it at Click Here
- API Documentation: api.betabotz.eu.org/docs
- Support Group: Join Group
- Updates Channel: Join Channel
Plugins are located in plugins/ directory. Each plugin should follow this structure:
const handler = async (m, { conn }) => {
// Plugin code here
}
handler.help = ['commandname']
handler.tags = ['category']
handler.command = /^(commandname)$/i
module.exports = handler- 🎯 Main - Basic commands
- ⚙️ Tools - Utility tools
- 💫 Downloader - Media downloaders
- 🎪 Fun - Fun commands
- 👾 Group - Group management
- 👤 Owner - Owner only commands
- 🛡️ Admin - Admin commands
- ⭐ Premium - Premium user commands
- 🎐 Info - Information commands
- ⚡ Advanced - Advanced features
- Create new .js file in plugins/
- Follow basic structure
- Define:
- handler function
- help array
- tags array
- command regex
Example plugin:
const handler = async (m, { conn }) => {
await m.reply('Hello World!')
}
handler.help = ['hello']
handler.tags = ['main']
handler.command = /^(hello|hi)$/i
module.exports = handler-
m- Message context- m.chat - Chat ID
- m.sender - Sender ID
- m.reply() - Reply to message
- m.quoted - Quoted message
-
conn- Bot connection object- conn.sendMessage() - Send message
- conn.sendFile() - Send file
- conn.sendPhoto() - Send photo
- conn.sendDocument() - Send file
With this, I would like to express my gratitude to:
- Erlan (Betabotz)
- Dreamliner21 (Paull)
- Danaputra
- Botcahx (Tio)
- And everyone who has contributed to the development of this bot.
Thank you so much for your support and contributions! 🚀
This project is licensed under the MIT License - see the LICENSE file for details
- Fork the repo
- Create feature branch
- Commit changes
- Push to branch
- Create pull request
- Keep your bot token secret
- Don't share config.js with tokens
- Regular backups recommended
- Check Telegram bot API limits