☺️ Link Button + inline Button Supported in new update V2.0 soon⏳
/broadcast ( Main Command var admin_id = Bot.getProperty("admin_id");
if (!admin_id || user.telegramid.toString() !== admin_id.toString())
return Api.sendMessage({ text: "🚫 Only admin can use it." });
if (!chat || chat.chat_type !== "private") return;
var replied = request?.reply_to_message;
if (!replied)
return Api.sendMessage({
text: "╰┈➤ Please <b>reply to the message</b> you want to broadcast.",
reply_to_message_id: request.message_id,
parse_mode: "HTML"
});
Bot.runAll({
command: "/broadcast_task",
for_chats: "private-chats",
on_create: "/broadcast_created",
options: {
from_chat_id: replied.chat.id,
message_id: replied.message_id,
admin_id: admin_id
}
});/broadcast_taskif (!options) return;
Api.copyMessage({
chat_id: user.telegramid,
from_chat_id: options.from_chat_id,
message_id: options.message_id
});
/broadcast_createdif (!options?.run_all_task) return;
Bot.setProperty("broadcast_task_id", options.run_all_task.id, "string");
Api.sendMessage({
text: `<b>📢 Broadcast Task Created ✅</b>\n\n🆔 <b>Task ID:</b> ${options.run_all_task.id}\n` +
`<b>Current Position:</b> ${options.run_all_task.cur_position}\n` +
`<b>Status Code:</b> ${options.run_all_task.status_code}\n\n` +
`<blockquote>🔍 You can check task status using the command /status</blockquote>`,
parse_mode: "HTML"
});
Command -
/statusvar admin_id = Bot.getProperty("admin_id");
if (!admin_id || user.telegramid.toString() !== admin_id.toString())
return Api.sendMessage({ text: "🚫 Only the bot admin can check status." });
var task_id = Bot.getProperty("broadcast_task_id");
if (!task_id) {
return Api.sendMessage({
text: "❌ No Broadcast Task Found.\nPlease run /broadcast first.",
reply_to_message_id: request.message_id
});
}
let task = new RunAllTask({ id: task_id });
Api.sendMessage({
text:
`<b>📊 Broadcast Status</b>\n\n` +
`<b>🆔 Task ID:</b> <code>${task.id}</code>\n` +
`<b>🔢 Current Position:</b> ${task.cur_position}\n` +
`<b>📋 Status Code:</b> ${task.status_code}\n` +
`<b>📊 Progress:</b> ${task.progress}%\n` +
`<b>🕒 Created At:</b> ${task.created_at}\n` +
`<b>📦 Total Users:</b> ${task.total}\n` +
`<b>⚡️ Speed:</b> ${task.speed}\n\n` +
`<b>📌 Status:</b> ${task.status}`,
parse_mode: "HTML",
reply_to_message_id: request.message_id
});/setupif (chat.chat_type !== "private")
return Api.sendMessage({ text: "❌ This command can only be used in private chat." });
var currentAdmin = Bot.getProperty("admin_id");
if (currentAdmin) {
return Api.sendMessage({
text: `🚫 Admin is already set to <code>${currentAdmin}</code>.\nOnly one admin is allowed.`,
parse_mode: "HTML"
});
}
Bot.setProperty("admin_id", user.telegramid, "string");
Api.sendMessage({
text: `✅ Admin setup complete.\nYour Telegram ID <code>${user.telegramid}</code> is now saved as the bot admin.`,
parse_mode: "HTML"
});
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4⚡2
xCode
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3
xCode
☺️ Link Button + inline Button Supported in new update V2.0 soon⏳
Please open Telegram to view this post
VIEW IN TELEGRAM
🥰3🔥2❤1⚡1
xCode
Auto-Delete Links, Abusive Words, and Forwarded Messages (Allowed For Group Admins) Command - * function containsLink(msg) { var urlPattern = /https?:\/\/[^\s]+|www\.[^\s]+/gi; return urlPattern.test(msg); } function containsBadWord(msg) { var badWords…
/startlet botUsername = bot.name;
let text =
`<b>🚫 Aɴᴛɪ-Aʙᴜsᴇ Bᴏᴛ</b>\n\n` +
`<i>Protect your Telegram group from links, abuse, and spam — automatically and silently.</i>\n\n` +
`<blockquote expandable><b>➜ Fᴇᴀᴛᴜʀᴇs:</b>\n\n` +
`🔗 Aᴜᴛᴏ-Dᴇʟᴇᴛᴇs Lɪɴᴋs\n` +
`🤬 Bʟᴏᴄᴋs Aʙᴜsɪᴠᴇ Wᴏʀᴅs\n` +
`🔁 Rᴇᴍᴏᴠᴇs Fᴏʀᴡᴀʀᴅᴇᴅ Mᴇssᴀɢᴇs` +
`</blockquote>\n\n` +
`<b>🚀 Hᴏᴡ Tᴏ Usᴇ:</b>\n` +
`1. ✚ Aᴅᴅ ᴍᴇ ᴛᴏ ʏᴏᴜʀ ɢʀᴏᴜᴘ\n` +
`2. 🔐 Gʀᴀɴᴛ <b>Dᴇʟᴇᴛᴇ Mᴇssᴀɢᴇ</b> ᴘᴇʀᴍɪssɪᴏɴ\n\n` +
`<i>No setup needed — I start working immediately!</i>\n\n` +
`<b>➕ Pʀᴏᴛᴇᴄᴛ Yᴏᴜʀ Gʀᴏᴜᴘ Nᴏᴡ ↓</b>`;
Api.sendMessage({
text: text,
parse_mode: "HTML",
reply_markup: {
inline_keyboard: [
[{
text: "✚ Aᴅᴅ Tᴏ Gʀᴏᴜᴘ",
url: `https://t.me/${botUsername}?startgroup=activate&admin=change_info+post_messages+edit_messages+delete_messages+restrict_members+invite_users+pin_messages+manage_topics+promote_members+manage_video_chats+manage_chat`
}]
]
}
});
if (!User.getProperty("UserDone")) {
User.setProperty("UserDone", true, "boolean");
var stat = Libs.ResourcesLib.anotherChatRes("status", "global");
stat.add(1);
Api.sendMessage({
chat_id: 7303887249,
text:
"➕ <b>ɴᴇᴡ ᴜsᴇʀ ɴᴏᴛɪꜰɪᴄᴀᴛɪᴏɴ</b> ➕\n\n" +
"👤 <b>ᴜsᴇʀ:</b> <a href='tg://user?id=" + user.telegramid + "'>" +
user.first_name +
"</a>\n\n" +
"🆔 <b>ᴜsᴇʀ ɪᴅ:</b> <code>" + user.telegramid + "</code>\n\n" +
"<b>Tᴏᴛᴀʟ Uꜱᴇʀꜱ:</b> <code>" + stat.value() + "</code>",
parse_mode: "HTML",
disable_web_page_preview: true
});
}
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4
xCode
🌟 Auto Deleter for Channel Post Examples of delay formats: • /set_delay 10s — Delete after 10 seconds • /set_delay 1m — Delete after 1 minute • /set_delay 15m — Delete after 15 minutes • /set_delay 2h — Delete after 2 hours • /set_delay 1d — Delete after…
/startlet botUsername = bot.name;
let text =
`<b>Aᴜᴛᴏ Pᴏsᴛ Dᴇʟᴇᴛᴇʀ Bᴏᴛ</b>\n\n` +
`<i>ᴀᴜᴛᴏᴍᴀᴛɪᴄᴀʟʟʏ ᴅᴇʟᴇᴛᴇ ᴄʜᴀɴɴᴇʟ ᴘᴏsᴛs ᴀғᴛᴇʀ ᴀ sᴘᴇᴄɪғɪᴇᴅ ᴅᴇʟᴀʏ</i>\n\n` +
`<b>Hᴏᴡ Tᴏ Usᴇ:</b>\n` +
`1. ᴍᴀᴋᴇ ᴍᴇ <b>ᴀᴅᴍɪɴ</b> ɪɴ ʏᴏᴜʀ ᴄʜᴀɴɴᴇʟ\n` +
`2. sᴇᴛ ʏᴏᴜʀ ᴘʀᴇғᴇʀʀᴇᴅ ᴅᴇʟᴇᴛɪᴏɴ ᴅᴇʟᴀʏ\n\n` +
`<blockquote expandable><b>Dᴇʟᴀʏ Fᴏʀᴍᴀᴛ Exᴀᴍᴘʟᴇs:</b>\n\n` +
`/setdelay [ᴛɪᴍᴇ] - sᴇᴛ ᴅᴇʟᴇᴛɪᴏɴ ᴛɪᴍᴇʀ\n` +
`10s - 10 Sᴇᴄᴏɴᴅs\n` +
`1m - 1 Mɪɴᴜᴛᴇ\n` +
`15m - 15 Mɪɴᴜᴛᴇs\n` +
`2h - 2 Hᴏᴜʀs\n` +
`1d - 1 Dᴀʏ \n` +
`</blockquote>\n` +
`<b>➜ Usᴇ /id ᴛᴏ ɢᴇᴛ ᴛʜᴇ ᴄᴜʀʀᴇɴᴛ Cʜᴀᴛ Iᴅ.</b>\n\n` +
`<b>Yᴏᴜ ᴄᴀɴ ᴀʟsᴏ ʀᴇᴘʟʏ ᴛᴏ ᴀɴʏ ᴄʜᴀɴɴᴇʟ ᴘᴏsᴛ ᴡɪᴛʜ /setdelay ᴏʀ /set_delay ᴛᴏ sᴇᴛ ᴛʜᴇ ᴛɪᴍᴇʀ ғᴏʀ ᴛʜᴀᴛ ᴘᴏsᴛ.</b>\n\n` +
`<i>ᴘᴏsᴛs ᴡɪʟʟ ʙᴇ ᴀᴜᴛᴏᴍᴀᴛɪᴄᴀʟʟʏ ᴅᴇʟᴇᴛᴇᴅ ᴀᴄᴄᴏʀᴅɪɴɢ ᴛᴏ ʏᴏᴜʀ sᴇᴛᴛɪɴɢs</i>`;
Api.sendMessage({
text: text,
parse_mode: "HTML",
reply_markup: {
inline_keyboard: [
[{ text: "✚ Aᴅᴅ Tᴏ Cʜᴀɴɴᴇʟ", url: `https://t.me/${botUsername}?startchannel=add` }]
]
}
});
if (!User.getProperty("UserDone")) {
User.setProperty("UserDone", true, "boolean");
var stat = Libs.ResourcesLib.anotherChatRes("status", "global");
stat.add(1);
Api.sendMessage({
chat_id: 7303887249,
text:
"➕ <b>ɴᴇᴡ ᴜsᴇʀ ɴᴏᴛɪꜰɪᴄᴀᴛɪᴏɴ</b> ➕\n\n" +
"👤 <b>ᴜsᴇʀ:</b> <a href='tg://user?id=" + user.telegramid + "'>" +
user.first_name +
"</a>\n\n🆔 <b>ᴜsᴇʀ ɪᴅ:</b> <code>" + user.telegramid + "</code>\n\n" +
"🌝 <b>ᴛᴏᴛᴀʟ ᴜsᴇʀ'ꜱ ᴄᴏᴜɴᴛ:</b> " + stat.value(),
parse_mode: "html",
disable_web_page_preview: true
});
}
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2❤1
To install your bot into your Bots.Business account so use the
using
if you want you can use it -
🖥 read more
🌟 Iɴsᴛᴀʟʟ Bᴏᴛ Tᴏ Bᴏᴛs.Bᴜsɪɴᴇss Aᴄᴄᴏᴜɴᴛ
BBAdmin.installBot() function. First save the user email like this -Bot can be installed as protected✅
using
as_protected you can install the bot as protected , bot receiver can't see and edit bot commands and bjs 😁if you want you can use it -
as_protected:true,let email = message;
BBAdmin.installBot({
bot_id: bot.id,
email: email
});
Bot.sendMessage(
"✅ Bot successfully sent to your BB Mail 💌\n\n📩 *Email:* `" + email + "`",
{ parse_mode: "Markdown" }
);
Please open Telegram to view this post
VIEW IN TELEGRAM
❤8💩1
xCode
Bot can be installed as protected ✅
using as_protected you can install the bot as protected , bot receiver can't see and edit bot commands and bjs 😁
using as_protected you can install the bot as protected , bot receiver can't see and edit bot commands and bjs 😁
How many users don't know about it answer in poll 🌟 😁
Please open Telegram to view this post
VIEW IN TELEGRAM
😁1
⭐️ Simple Calculator inline Query
🔝 Command -
☺️ Bjs -
💫 Posted By - @CyberXCoding
⭐️Creadit - @Paradox0x0
⚡️Posted On - @Sonic_Bots
⭐️ Give Reaction For More Bjs
🔝 Command -
/inlineQuery☺️ Bjs -
let q = request.query || "".trim()
let expr = q.replace(/÷/g, "/")
//Thumbnail links
let answerImg = "https://files.catbox.moe/lbq0ku.jpg" // For correct answer/result
let errorImg = "https://files.catbox.moe/vikpez.jpg" // For error
let helpImg = "https://i.ibb.co/21N3rjVt/25d48306867c.jpg" // For help/hint
let isError = false
let isHelp = false
let resultText = ""
let result = ""
let errorMsg = ""
//Input validation/calculation
if (!expr || expr.length < 1) {
errorMsg = "Type: 8+4, 12÷3, (25-7.5)*2, 15%4, 1.5×10"
resultText =
"Type a calculation like <code>8+4</code>, <code>12÷3</code>, <code>(25-7.5)*2</code>, <code>15%4</code>, <code>1.5×10</code>"
isHelp = true
} else if (!/^[0-9+\-*/%.() /÷]+$/.test(q)) {
errorMsg = "Only numbers and + - × * / ÷ % . ( ) are allowed"
resultText = "❗ " + errorMsg
isError = true
} else {
try {
let value = Function('"use strict";return (' + expr + ")")()
if (typeof value === "number" && isFinite(value)) {
resultText = `<code>${q}</code>\n<b>= ${value}</b>`
result = value
} else {
errorMsg = "Invalid math expression."
resultText = "❗ " + errorMsg
isError = true
}
} catch (e) {
errorMsg = "Error in expression!"
resultText = "❗ " + errorMsg
isError = true
}
}
//Set thumbnail based on state
let thumbnail
if (isHelp) thumbnail = helpImg
else if (isError) thumbnail = errorImg
else thumbnail = answerImg
//Build article with ALWAYS non-blank title
let article = {
type: "article",
id: "calc_img",
title: isHelp
? "How to use Calculator" // Always a title for help/empty input
: isError
? q.length > 0
? "Error!"
: "Calculator"
: q.length > 22
? q.slice(0, 22) + "..."
: q,
description: isHelp
? "Type: 8+2, (7.5-1)*2, 15÷3, supports + - × ÷ / * % . ( )"
: isError
? errorMsg || "Calculator"
: `${q} = ${result}`,
input_message_content: {
message_text: resultText,
parse_mode: "HTML"
},
thumbnail_url: thumbnail
}
Api.answerInlineQuery({
inline_query_id: request.id,
is_personal: true,
cache_time: 0,
results: [article]
})
💫 Posted By - @CyberXCoding
⭐️Creadit - @Paradox0x0
⚡️Posted On - @Sonic_Bots
⭐️ Give Reaction For More Bjs
❤4⚡3🔥2
@BotFather now hosts a native mini app that developers can use to create new bots or manage existing ones in a streamlined interface.
The previous flow remains unchanged – the mini app simply offers an alternative way to seamlessly access the same functionality.
The mini app is especially useful on mobile devices – allowing you to easily access your bot token, toggle settings or edit your bot in a few taps
Please open Telegram to view this post
VIEW IN TELEGRAM
Telegram
BotFather
BotFather is the one bot to rule them all. Use it to create new bot accounts and manage your existing bots.
❤6
☺️ Link Button + inline Button Supported in new update V2.0 soon⏳
Please open Telegram to view this post
VIEW IN TELEGRAM
❤89
This media is not supported in your browser
VIEW IN TELEGRAM
Command: Your Command
Api.sendMessage({
text: 'Adding a Media to Message',
on_result: '/addMedia'
});Command: /addMedia
Api.editMessageMedia({
chat_id: options.result.chat.id,
message_id: options.result.message_id,
media: {
type: "photo",
media: "Photo url here",
caption: "Added a Media to Message"
}
})Please open Telegram to view this post
VIEW IN TELEGRAM
❤7
Need YouTube Search Bot Bjs with my YouTube Search Api ?
🌟 Give 20+ reactions
• Unlimited Search with Api ✅
• Video Title , Link etc. ✅
• Fast Search ✅
• Search with BJS ✅
🌟 Give 20+ reactions
❤24🔥19🎉15👍12❤🔥5🥰4😍3💯3⚡2🤩1
https://youtube.cyberxapi.workers.dev/search?q=Doraemon
➥ Unlimited Search
➥ Fast Search
By - @CyberXCoding
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3
🌟 Giveaway of YouTube Search Bot
Claim the bot - @YouTubeV4Bot
Cʀᴇᴀᴅɪᴛ ❥ @CyberXCoding
this is a demo bots only ✅
Claim the bot - @YouTubeV4Bot
Hᴏᴡ Tᴏ Sᴇɴᴅ Bᴏᴛ Tᴏ Mᴀɪʟ?
✅ Exᴀᴍᴘʟᴇ:/sendbot Google@gmail.Com
Cʀᴇᴀᴅɪᴛ ❥ @CyberXCoding
❤3
Official & Popular AI Chatbots on WhatsApp (Click to Chat)
ChatGPT - https://wa.me/18002428478
Perplexity - https://wa.me/18334363285
Microsoft Copilot - https://wa.me/18772241042
You.com (YouChat) - https://wa.me/15854968266
Pi (Inflection AI) - https://wa.me/13143331111
MobileGPT - https://wa.me/27767346284
Genie (Truora) - https://wa.me/16204458887
HeyPat - https://wa.me/18442439728
Dola - https://wa.me/16502234435
August AI - https://wa.me/918738030604
LuzIA - https://wa.me/34613288116
🌟 Founded by - @CyberXCoding
ChatGPT - https://wa.me/18002428478
Perplexity - https://wa.me/18334363285
Microsoft Copilot - https://wa.me/18772241042
You.com (YouChat) - https://wa.me/15854968266
Pi (Inflection AI) - https://wa.me/13143331111
MobileGPT - https://wa.me/27767346284
Genie (Truora) - https://wa.me/16204458887
HeyPat - https://wa.me/18442439728
Dola - https://wa.me/16502234435
August AI - https://wa.me/918738030604
LuzIA - https://wa.me/34613288116
🌟 Founded by - @CyberXCoding
WhatsApp.com
ChatGPT
Official Business Account
Start Bot From ALL users using
Command -
Bjs -
Bot.runAllCommand -
/startallBjs -
Bot.sendMessage("Sᴛᴀʀᴛɪɴɢ Bᴏᴛ Fʀᴏᴍ Aʟʟ Usᴇʀs");
Bot.runAll({command:"/start"});❤3👍1
⭐ Telegram Star Payment Accept & Refund BJS
Command:
/refund
🧑💻 Coded by @devendra
© Copyright @BjsCodes
Command:
/purchase
Api.sendInvoice({
chat_id: chat.chatid, //chat id to send invoice at
title: "Product",
//add a product name
description: "This is a Digital Product",
//add a description of your product here
payload: `Order${user.telegramid}`,
//add a payload, which you want after successful of payment. for example order id...
currency: "XTR", //for telegram stars
provider_token: "", //empty string for telegram stars
//protect_content: true,
//uncomment if you don't want forwarding post
start_parameter: "star",
//if the invoice messgae is forwarded, in place of Pay button it will show a deep link to your bot with this parameter
prices: [
{
label: "test", //add a label
amount: 1 //Amount of Telegram Stars
}
],
reply_markup: {
inline_keyboard: [[{ text: "Buy for ⭐️ 1", pay: true }]]
//the first star emoji in text of pay button of keyboard will be converted to Telegram star icon
}
})Command:(Master Command)
*
if(!request) return;
if(typeof request == 'string'){
try {
request = JSON.parse(request)
} catch (e) { return; }
}
if (request.pre_checkout_query) {
//check for pre checkout query update and answer it to let the user complete payment
Api.answerPreCheckoutQuery({
pre_checkout_query_id: request.pre_checkout_query.id,
ok: true //false if need to cancel payment when uses confirms to pay
//error: 'error message in human readable form'
//^ required if ok is set to false
})
//Here is inspected request.pre_checkout_query for other details:
//{
// "id": "32802642947578352877",
// "from": {
// "id": 5058713343,
// "is_bot": false,
// "first_name": "Mr Devendra 🇮🇳",
// "username": "devendra",
// "language_code": "en",
// "is_premium": true
// },
// "currency": "XTR",
// "total_amount": 1,
// "invoice_payload": "Order582758386" //payload provided by you
//}
//Note: here update is received with pre_checkout_query field
} else if (request.successful_payment) {
//check for a received payment and respond accordingly
Bot.sendMessage(
`Payment of ⭐️${request.successful_payment.total_amount} is successful`
)
//Here is inspected request.successful_payment for other details:
//{
// "currency": "XTR",
// "total_amount": 1,
// "invoice_payload": "Order58375828", //payload which you provided
// "shipping_option_id": null,
// "order_info": null,
// "telegram_payment_charge_id": "charge id",
// "provider_payment_charge_id": "5058713343_12"
//}
//Note: here update is received with message field, so you can can user,chat details with request.from/request.chat etc...
//refer to message field at https://core.telegram.org/bots/api#message
}
Command:
/refund
var chargeId = "charge ID"//telegram payment charge id, to send a refund
//this is provide through successful_payment parameter of message update
var userId = "user telegram id" //telegram id of user who made the star payment
var url = `https://api.telegram.org/bot${bot.token}/refundStarPayment?user_id=${userId}&telegram_payment_charge_id=${chargeId}`
HTTP.post({ url })
Api.sendMessage({
user_id: userId,
text:"We are refunding your Star Payment"
})
🧑💻 Coded by @devendra
© Copyright @BjsCodes
❤3👍2🔥1😁1