chatbotsbusiness | Unsorted

Telegram-канал chatbotsbusiness - Bots.Business Q&A Chat

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

Subscribe to a channel

Bots.Business Q&A Chat

Use express raw http for creating server is hard to handle

Читать полностью…

Bots.Business Q&A Chat

@arijitiyan just developed a bot for me with mini app and I love his work and creativity very nice work thanks buddy

Читать полностью…

Bots.Business Q&A Chat

I am robo 🤖
I can help you! /teaching
http://help.bots.business

Читать полностью…

Bots.Business Q&A Chat

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

Читать полностью…

Bots.Business Q&A Chat

Contact Mark Zuckerberg

Читать полностью…

Bots.Business Q&A Chat

Any wp number unbanner dm

Читать полностью…

Bots.Business Q&A Chat

10 dgb(digibyte) chiye kisike pass hai ?

Mai upi kar dunga

Читать полностью…

Bots.Business Q&A Chat

Why .jpg in last in telegram post message

Читать полностью…

Bots.Business Q&A Chat

Seems do you need to know uptime status?
http://up.bots.business

Читать полностью…

Bots.Business Q&A Chat

maine abhi tak test nahi kara, yesa hua to valle valle

Читать полностью…

Bots.Business Q&A Chat

Abb hum log bot main emoji laga skte premium wali ? Without nft buy kre ?

Читать полностью…

Bots.Business Q&A Chat

Yes, what's wrong in it ?

Читать полностью…

Bots.Business Q&A Chat

Solution sir anybody @all

Читать полностью…

Bots.Business Q&A Chat

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
})
}



Any one solve this problem bot not start after its

Читать полностью…

Bots.Business Q&A Chat

Any can say how to do like these

Читать полностью…

Bots.Business Q&A Chat

Is se a6a and chota qr code generator code mere pass he 😁. Agar chahiye to dm karo

Читать полностью…

Bots.Business Q&A Chat

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

Читать полностью…

Bots.Business Q&A Chat

/**
* 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}`)
})


Help me to fix, not genarting QR

Читать полностью…

Bots.Business Q&A Chat

Any one teach me java script 😭
I am expert in pyrhon

Читать полностью…

Bots.Business Q&A Chat

Dm @monk

Читать полностью…

Bots.Business Q&A Chat

@WK_TikSaver_Bot

tiktok downloader bot

Читать полностью…

Bots.Business Q&A Chat

/channel/StarsCashsPays/62

Is not photo it is gif

Читать полностью…

Bots.Business Q&A Chat

Use const, or var if it's not function and if, else, else if
the code will be injected faster with js

Читать полностью…

Bots.Business Q&A Chat

Hora hai hua nhi test done

Читать полностью…

Bots.Business Q&A Chat

let channels = ["@mani_come"]

In the last add ;
user.telegramid add same ;

This 👇

let channels = ["@mani_come"];
let id = user.telegramid;

Just try im not sure 🙂‍↕️

Читать полностью…

Bots.Business Q&A Chat

Subscriber lane ka new trick

Читать полностью…

Bots.Business Q&A Chat

Aaj sach bta diya tune bb ki owner teri ma hai 😂🥲 latest news 🗞️

Читать полностью…

Bots.Business Q&A Chat

Seems do you need to know uptime status?
http://up.bots.business

Читать полностью…

Bots.Business Q&A Chat

create your own verification api, or use an existing one

and then you can use webhook libs to verify user

Читать полностью…

Bots.Business Q&A Chat

@arijitiyan

Читать полностью…
Subscribe to a channel