6306
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
dm me if you want to buy your professional customized telegram/whatsapp/messenger bot
Читать полностью…
Run other command for all chats
Use this command for broadcasting any information: message, photo, video, keyboard and etc
Bot.runAll works for worked bots only.
If you start a new task before the previous old task has completed, there is no guarantee that the old task will complete for all chats.
You need to wait for the old task to complete before starting the new one.
Bot.runAll(params)
Field
Description
command
Required. Command for run. For example "/start". Can pass params
options
json for passing to command. Available through options in this command
for_chats
on_create
run this command on task creation with task information
Command will be runned for this chats type only. Can be:
"private-chats"
"group-chats"
"super-group-chats"
"all" - default
Example:
Command: /news
Bot.runAll( {
// this command will be executed
// for each private chat (user)
command: "/broadcast",
for_chats: "private-chats",
on_create: "on_new_brodcast_task",
// you can pass data via options
options: { news: "Hello! it is news!" }
} )
Command: /broadcast
// it have user and chat object!
// so we can send any information now: message, keyboard, photo and etc
Bot.sendMessage(options.news)
// we can get brodcast info via task
/*
let task = options.task;
Bot.sendMessage(
"Task progress: " + task.progress +
"\n total: " + task.total +
"\n cur index: " + task.cur_position +
"\n status: " + task.status +
"\n errors: " + task.errors_count
)
*/
Command: on_new_brodcast_task
const task = options.run_all_task;
Bot.sendMessage(
"Task for brodcasting created. Task id: " + task.id
);
// save task id:
Bot.setProperty("curBrodcastTaskID", task.id, "integer")
// Bot.inspect(options.run_all_task);
Command: /progress
// show current runAll progress
const taskID = Bot.getProperty("curBrodcastTaskID");
let task = new RunAllTask({ id: taskID });
// Bot.inspect(task) // you can check all fields
if(!task.status){
Bot.sendMessage("This task not found")
return
}
Bot.sendMessage(
"Current brodcast: " +
"\n Status: " + task.status + " " + task.progress + "%" +
"\n Progress:" + task.cur_position + "/" + task.total
)
More info: /channel/codingwithmohitapis/5
@Yichu_Bro
Bot.sendMessage("Hello, it is /start command!");
Please input numbers only. For example: 15
Читать полностью…
How to create device verification mini app please DM me
Читать полностью…
/channel/GmailFarmingGroup/880
Join The Group Send One Message and Get 2 BB Point
Please input numbers only. For example: 15
Читать полностью…
// Button click handler
if (request.data == "order_views") {
User.setProperty("order_step", "ask_link", "string");
Bot.sendMessage("🔗 *Order Views*
Send the post/video link you want to boost.");
return;
}
// Step 1: User sends link
if (step == "ask_link") {
if (!message || !message.startsWith("http")) {
Bot.sendMessage("❌ Please send a valid link starting with http/https.");
return;
}
User.setProperty("post_link", message, "string");
User.setProperty("order_step", "ask_views", "string");
Bot.sendMessage("📊 Now send the number of views you want (minimum 100).");
return;
}
// Step 2: User sends number of views + API CALL
if (step == "ask_views") {
let views = parseInt(message);
if (!views || views < 100) {
Bot.sendMessage("❌ Please enter a number of at least 100.");
return;
}
User.setProperty("views_count", views, "number");
let postLink = User.getProperty("post_link");
// === REAL API CALL (Replace with YOUR values) ===
let apiKey = ""; // YOUR API KEY
let serviceId = ""; // YOUR SERVICE ID
let apiUrl = ${apiKey}&action=add&service=${serviceId}&link=${postLink}&quantity=${views};
let response = HTTP.get(apiUrl);
// Check HTTP status first
if (!response || response.http_status != 200) {
Bot.sendMessage("❌ API connection failed. Status: " + (response?.http_status || "No response"));
User.setProperty("order_step", "", "string");
return;
}
let data;
try {
data = JSON.parse(response.content);
} catch (e) {
Bot.sendMessage("❌ Failed to parse API response.");
User.setProperty("order_step", "", "string");
return;
}
if (data.status != "success") {
Bot.sendMessage("❌ Failed to place order: " + (data.error || "Unknown error"));
User.setProperty("order_step", "", "string");
return;
}
let orderId = data.order?.id data.order "N/A";
// Reset ALL states
User.setProperty("order_step", "", "string");
User.setProperty("post_link", null, "string");
User.setProperty("views_count", null, "number");
Bot.sendMessage(✅ *Order Placed Successfully!*
🔗 Link: ${postLink}
📊 Views: ${views}
🆔 Order ID: ${orderId});
return;
}
// Default fallback
Bot.sendMessage("Please click the *Order Views* button to start.")
Forking bish 😭😭
Don't screenshot everything i say
Ar vai yea to pata he lakin yea to chal nahi Raha tum ak likh ke dona
Читать полностью…
Koi mere aisa broadcast ka command de sakte hee jis se me video audio, photo and text send kar pau
Agar koi de sakta hee to dedo please 🙏🙏
+2 💎 from [@arijitiyan](tg://user?id=7378059553).
You have: 1062💎
⚠️ Restrictions - possible punishments (read mode only):Читать полностью…
- 8-hour -💎 -1 BBP.
- 24-hour -💎 -3 BBP.
- 1-week -💎 -5 BBP.
- Permanent -💎 -8 BBP.
You have no current punishments.
/channel/BotTalk/1032223
Let him find the solution first 🙂
Code is free bro but you need a hosting web or app like bot business app where you write code in BJS(BOT JAVA SCRIPT) and host it for free
Читать полностью…
0 💎 from [@VIDHANXH](tg://user?id=5658930434).
You have: 48💎
⚠️ Restrictions - possible punishments (read mode only):Читать полностью…
- 8-hour -💎 -1 BBP.
- 24-hour -💎 -3 BBP.
- 1-week -💎 -5 BBP.
- Permanent -💎 -8 BBP.
You have no current punishments.
Do not use data.XXX in BJS.
Deprecated!
For example use message instead data.message
// Button click handler
if (request.data == "order_views") {
User.setProperty("order_step", "ask_link", "string");
Bot.sendMessage("🔗 *Order Views*\n\nSend the post/video link you want to boost.");
return;
}
// Get current step from user property
let step = User.getProperty("order_step");
// Step 1: User sends link
if (step == "ask_link") {
if (!message || !message.match(/^https?:\/\//)) {
Bot.sendMessage("❌ Please send a valid link starting with http/https.");
return;
}
User.setProperty("post_link", message, "string");
User.setProperty("order_step", "ask_views", "string");
Bot.sendMessage("📊 Now send the number of views you want (minimum 100).");
return;
}
// Step 2: User sends number of views + API CALL
if (step == "ask_views") {
// Parse and validate views
let views = parseInt(message);
if (isNaN(views) || views < 100) {
Bot.sendMessage("❌ Please enter a valid number of at least 100.");
return;
}
User.setProperty("views_count", views, "number");
let postLink = User.getProperty("post_link");
// === REAL API CALL (Replace with YOUR values) ===
let apiKey = "YOUR_API_KEY_HERE"; // Replace with your actual API key
let serviceId = "YOUR_SERVICE_ID_HERE"; // Replace with your actual service ID
// Fixed template literal syntax
let apiUrl =
${apiKey}&action=add&service=${serviceId}&link=${encodeURIComponent(postLink)}&quantity=${views};✅ *Order Placed Successfully!*\n\n🔗 Link: ${postLink}\n📊 Views: ${views}\n🆔 Order ID: ${orderId});
Do not use data.XXX in BJS.
Deprecated!
For example use message instead data.message
📜 Telegram Account Seller Bot live ❗️
🛍 Buy here : @Buysellsessionsbot
🌐 Features :
--- Deposit Crypto ( Automatic ) & INR
--- Buy Accounts As Sessions ( Bulk buy has offers ❕)
--- Buy Accounts With Manual Otp ( Automatic )
--- Different Countries available
--- Old aged Accounts available 📆
🎒 Shop your accounts now instantly !
+2 💎 from [@arijitiyan](tg://user?id=7378059553).
You have: 63💎
⚠️ Restrictions - possible punishments (read mode only):Читать полностью…
- 8-hour -💎 -1 BBP.
- 24-hour -💎 -3 BBP.
- 1-week -💎 -5 BBP.
- Permanent -💎 -8 BBP.
You have no current punishments.