6305
Welcome to Bots.Business chat Also known as (BB chat) 😊 It Q&A (question & answer) not CPD ( Copy&Past Development) chat -------- ❓ Help https://help.bots.business http://app.bots.business
Use express raw http for creating server is hard to handle
Читать полностью…
@arijitiyan just developed a bot for me with mini app and I love his work and creativity very nice work thanks buddy
Читать полностью…
I am robo 🤖
I can help you! /teaching
http://help.bots.business
Hey! I start the first lesson just now!
1. Please see this Help.
2. Please see demo bots in the Store. We have good bots and you can copy theys!
3. Ask good and smart questions in this chat.
Thank you!
http://help.bots.business
10 dgb(digibyte) chiye kisike pass hai ?
Mai upi kar dunga
Why .jpg in last in telegram post message
Читать полностью…
Seems do you need to know uptime status?
http://up.bots.business
maine abhi tak test nahi kara, yesa hua to valle valle
Читать полностью…
Abb hum log bot main emoji laga skte premium wali ? Without nft buy kre ?
Читать полностью…
let channels = ["@mani_come"]
let id = user.telegramid
Bot.setProperty("notJoined", "", "string")
Bot.setProperty("totalChecked", 0, "integer")
Bot.setProperty("totalChannels", channels.length, "integer")
for (var i = 0; i < channels.length; i++) {
Api.getChatMember({
chat_id: channels[i],
user_id: id,
on_result: "/Check_status" + channels[i] // ✅ Channel name yahan pass ho raha hai
})
}
Is se a6a and chota qr code generator code mere pass he 😁. Agar chahiye to dm karo
Читать полностью…
Hey! I start the first lesson just now!
1. Please see this Help.
2. Please see demo bots in the Store. We have good bots and you can copy theys!
3. Ask good and smart questions in this chat.
Thank you!
http://help.bots.business
/**
* WhatsApp Group Moderation Bot
* Unofficial – Baileys
* cPanel compatible (QR via browser)
*/
console.log("BOT FILE LOADED")
const {
default: makeWASocket,
useMultiFileAuthState,
DisconnectReason
} = require('@whiskeysockets/baileys')
const Pino = require('pino')
const http = require('http')
// ================= SETTINGS =================
const LINK_REGEX = /(https?:\/\/|www\.|wa\.me\/)/i
const WARN_LIMIT = 3
const warnings = {}
const spamTracker = {}
let latestQR = null
// ============================================
async function startBot () {
const { state, saveCreds } = await useMultiFileAuthState('./session')
const sock = makeWASocket({
auth: state,
logger: Pino({ level: 'silent' }),
printQRInTerminal: false,
browser: ['Chrome (Linux)', '', '']
})
sock.ev.on('creds.update', saveCreds)
sock.ev.on('connection.update', ({ connection, lastDisconnect, qr }) => {
if (qr) {
latestQR = qr
console.log('📱 QR GENERATED — open /qr to scan')
}
if (connection === 'close') {
const shouldReconnect =
lastDisconnect?.error?.output?.statusCode !== DisconnectReason.loggedOut
if (shouldReconnect) startBot()
}
if (connection === 'open') {
console.log('✅ Bot connected successfully')
}
})
sock.ev.on('messages.upsert', async ({ messages }) => {
const msg = messages[0]
if (!msg.message) return
const from = msg.key.remoteJid
if (!from.endsWith('@g.us')) return
const sender = msg.key.participant
if (!sender) return
const text =
msg.message.conversation ||
msg.message.extendedTextMessage?.text ||
''
if (!text) return
// Fetch group admins
const metadata = await sock.groupMetadata(from)
const admins = metadata.participants
.filter(p => p.admin)
.map(p => p.id)
// Ignore admins
if (admins.includes(sender)) return
// 🔗 LINK DETECTION
if (LINK_REGEX.test(text)) {
await sock.sendMessage(from, {
delete: {
remoteJid: from,
fromMe: false,
id: msg.key.id,
participant: sender
}
})
if (!warnings[from]) warnings[from] = {}
warnings[from][sender] = (warnings[from][sender] || 0) + 1
const count = warnings[from][sender]
if (count < WARN_LIMIT) {
await sock.sendMessage(from, {
text: `⚠️ Warning ${count}/${WARN_LIMIT}\nLinks are not allowed.`,
mentions: [sender]
})
} else {
await sock.groupParticipantsUpdate(from, [sender], 'remove')
}
}
// 🚨 SPAM DETECTION
if (!spamTracker[sender]) spamTracker[sender] = []
const now = Date.now()
spamTracker[sender].push(now)
spamTracker[sender] = spamTracker[sender].filter(t => now - t < 5000)
if (spamTracker[sender].length > 6) {
await sock.groupParticipantsUpdate(from, [sender], 'remove')
}
})
}
// START BOT
startBot()
// ============ REQUIRED FOR CPANEL =============
const PORT = process.env.PORT || 3000
http.createServer((req, res) => {
if (req.url === '/qr') {
res.writeHead(200, { 'Content-Type': 'text/plain' })
return res.end(
latestQR
? latestQR
: 'QR not generated yet. Restart the app.\n'
)
}
res.writeHead(200, { 'Content-Type': 'text/plain' })
res.end('WhatsApp bot is running\nVisit /qr to scan QR\n')
}).listen(PORT, () => {
console.log(`HTTP server running on port ${PORT}`)
})
Any one teach me java script 😭
I am expert in pyrhon
@WK_TikSaver_Bot
tiktok downloader bot
/channel/StarsCashsPays/62
Is not photo it is gif
Use const, or var if it's not function and if, else, else if
the code will be injected faster with js
let channels = ["@mani_come"]
let channels = ["@mani_come"];
let id = user.telegramid;
Aaj sach bta diya tune bb ki owner teri ma hai 😂🥲 latest news 🗞️
Читать полностью…
Seems do you need to know uptime status?
http://up.bots.business
create your own verification api, or use an existing one
and then you can use webhook libs to verify user