chatbotsbusiness | Unsorted

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

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

Subscribe to a channel

Bots.Business Q&A Chat

dm me if you want to buy your professional customized telegram/whatsapp/messenger bot

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

Bots.Business Q&A Chat

Me using same 👆

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

Bots.Business Q&A Chat

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
)

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

Bots.Business Q&A Chat

More info: /channel/codingwithmohitapis/5

@Yichu_Bro

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

Bots.Business Q&A Chat

Bot.sendMessage("Hello, it is /start command!");

my reward @arijitiyan😾

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

Bots.Business Q&A Chat

Please input numbers only. For example: 15

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

Bots.Business Q&A Chat

How to create device verification mini app please DM me

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

Bots.Business Q&A Chat

I need free hosting bot code

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

Bots.Business Q&A Chat

/channel/GmailFarmingGroup/880

Join The Group Send One Message and Get 2 BB Point

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

Bots.Business Q&A Chat

Please input numbers only. For example: 15

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

Bots.Business Q&A Chat

Anyone want advanced click bot?

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

Bots.Business Q&A Chat

// 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.")


Pls help fix this code

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

Bots.Business Q&A Chat

Forking bish 😭😭
Don't screenshot everything i say

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

Bots.Business Q&A Chat

Done. You can send media now.

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

Bots.Business Q&A Chat

@arijitiyan

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

Bots.Business Q&A Chat

Yea se command start hota he kiya

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

Bots.Business Q&A Chat

Ar vai yea to pata he lakin yea to chal nahi Raha tum ak likh ke dona

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

Bots.Business Q&A Chat

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 🙏🙏

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

Bots.Business Q&A Chat

+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.

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

Bots.Business Q&A Chat

I need a code for start message

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

Bots.Business Q&A Chat

/channel/BotTalk/1032223

Let him find the solution first 🙂

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

Bots.Business Q&A Chat

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

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

Bots.Business Q&A Chat

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.

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

Bots.Business Q&A Chat

Do not use data.XXX in BJS.
Deprecated!

For example use message instead data.message

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

Bots.Business Q&A Chat

// 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};

try {
let response = HTTP.get(apiUrl);

// Check HTTP status
if (!response || response.status !== 200) {
Bot.sendMessage("❌ API connection failed. Status: " + (response?.status || "No response"));
User.setProperty("order_step", "", "string");
return;
}

let data;
try {
data = JSON.parse(response.text || 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;
}

// Fixed ternary operator syntax
let orderId = data.order ? (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!*\n\n🔗 Link: ${postLink}\n📊 Views: ${views}\n🆔 Order ID: ${orderId});
return;

} catch (error) {
Bot.sendMessage("❌ Error processing your order. Please try again later.");
User.setProperty("order_step", "", "string");
return;
}
}

// Default fallback - only if no step is active
if (!step || step === "") {
Bot.sendMessage("Please click the *Order Views* button to start.");
}

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

Bots.Business Q&A Chat

Do not use data.XXX in BJS.
Deprecated!

For example use message instead data.message

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

Bots.Business Q&A Chat

📜 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 !

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

Bots.Business Q&A Chat

see your admin🥹 @arijitiyan

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

Bots.Business Q&A Chat

+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.

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

Bots.Business Q&A Chat

/channel/botsbus/1990

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