xCode
290 subscribers
22 photos
2 videos
3 files
46 links
Download Telegram
xCode pinned «▎𝙂𝙍𝙊𝙐𝙋 𝙇𝙄𝙉𝙆 ────────● 🌟 𓆩 𝘼𝙉𝙄𝙈𝙀 𝙂𝙍𝙊𝙐𝙋 𓆪 🩷»
🌟 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 1 day
Command: *
Bjs:
if (typeof request === "string") {
try { request = JSON.parse(request.replace(/\n/g, "\\\n")); } catch (e) { return; }
}

let { channel_post: message } = request;
if (!message) return;

let chat_id = message.chat.id;
let message_id = message.message_id;
let text = message.text || message.caption || "";

let delayMatch = text.match(/\/set_delay\s+(\d+)([smhd])/i);
if (!delayMatch) return;

let amount = parseInt(delayMatch[1]);
let unit = delayMatch[2].toLowerCase();
let delayMs;

switch (unit) {
case 's': delayMs = amount * 1000; break
case 'm': delayMs = amount * 1000 * 60; break
case 'h': delayMs = amount * 1000 * 60 * 60; break
case 'd': delayMs = amount * 1000 * 60 * 60 * 24; break
default: return;
}

let delaySec = Math.floor(delayMs / 1000);

Bot.run({
command: "/delete_post",
run_after: delaySec,
options: {
chat_id: chat_id,
message_id: message_id
}
});

Bot.setProp(`log_${chat_id}_${message_id}`, {
scheduled_at: new Date().toISOString(),
delay: `${amount}${unit}`,
message_id: message_id
}, 'json');


Command: /delete_post
Bjs:
Api.deleteMessage({
chat_id: options.chat_id,
message_id: options.message_id,
on_result: function(response) {
if (response.ok) {
Bot.setProp(`log_${options.chat_id}_${options.message_id}`, {
deleted_at: new Date().toISOString(),
status: "deleted"
}, 'json');
} else {
Bot.run({
command: "/on_error",
options: {
chat_id: options.chat_id,
message_id: options.message_id,
error: JSON.stringify(response)
}
});
}
}
});

Command: /on_error
Bjs:

Bot.setProp(`log_${options.chat_id}_${options.message_id}`, {
error_at: new Date().toISOString(),
status: "failed",
error: options.error
}, 'json');


Example post (supports text, media + caption):
New update released! /set_delay 5m

This post will auto-delete after 5 minutes.

🩵 Cʀᴇᴀᴅɪᴛ - @Sonic_Coder
⭐ Exᴀᴍᴘʟᴇ Usᴇ - @AutoPostDeleterXBot
🔥2❤1
xCode pinned «🌟 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…»
This media is not supported in your browser
VIEW IN TELEGRAM
🩵 Cʀᴇᴀᴅɪᴛ - @Sonic_Coder
⭐ Exᴀᴍᴘʟᴇ Usᴇ - @AutoPostDeleterBot

🌟 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
Looking to Create an Advanced Bot? 

If anyone is interested in creating an advanced bot like
@ExploitExpertBot
@LogoSellerXBot
@AutoPostDeleterBot
@iFileProBot

I can help! 

▎OFFER: 

- Normal Bot: $2 
- Advanced Bot: $10

▎MESSAGE ME - @CyberXCoding
👍2❤1
xCode pinned «Looking to Create an Advanced Bot?  If anyone is interested in creating an advanced bot like @ExploitExpertBot @LogoSellerXBot @AutoPostDeleterBot @iFileProBot I can help!  ▎OFFER:  - Normal Bot: $2  - Advanced Bot: $10 ▎MESSAGE ME - @CyberXCoding»
Need Gemini Ai BJS With Official Gemini Api Key

Complete ✅ 10+ Reaction
😁4👍3❤1👏1
🌟 Gemini Ai BJS With Official Api Key

Command - * ( Matser Command )
Bjs -
let apiKey = "Gemini_Api_Key";
let userMessage = message;
let chatId = user.chat_id;

Bot.setProperty("lastMessage_" + chatId, userMessage, "string");

let url = "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=" + apiKey;

let payload = {
  contents: [
    {
      parts: [
        { text: String(userMessage) }
      ]
    }
  ]
};

Api.sendChatAction({ action: "typing" });

HTTP.post({
  url: url,
  headers: {
    "Content-Type": "application/json"
  },
  body: JSON.stringify(payload),
  success: "/gemini_response",
  background: true
});

Command - /gemini_response
Bjs -
let data = JSON.parse(content);
let chatId = user.chat_id;

if (data.candidates && data.candidates.length > 0 && data.candidates[0].content && data.candidates[0].content.parts) {
  let reply = data.candidates[0].content.parts.map(p => p.text).join("\n");

  reply = reply.replace(/(\*\*|\*|_|\n\n)/g, " ").trim();
  Bot.setProperty("lastAIResponse_" + chatId, reply, "string");

  Bot.sendMessage(reply);
} else {
  Bot.sendMessage("No response from Gemini AI.");

}


Gemini Api Key - https://aistudio.google.com/apikey

🩵 Cʀᴇᴀᴅɪᴛ - @Sonic_Coder
👍3❤2
🌟 Giveaway Of Grok Ai Bot

claim with /sendbot command

Bot Username -
@NewGrokAiBot
@NewGrokAiBot

Gemini Api Key - https://aistudio.google.com/apikey

🩵 Cʀᴇᴀᴅɪᴛ - @Sonic_Coder
❤3
BB ForwardCast BJS (Based On BB Bot.runAll Function)

Command: /ForwardCast
BJS:
var admin = [your_tg_id];

// Check if the user is an admin
if (!admin.includes(user.telegramid)) {
Bot.sendMessage("*Only admin can use!* ",{is_reply:true});
return;
}

Bot.sendMessage("Forward cast sent to all users")

Bot.runAll({
command: "/onForward",
options: { chat_id: request.chat.id, message_id: request.message_id },
on_create: "/id"
})

Command: /onForward
BJS:
Api.forwardMessage({
chat_id: user.telegramid,
from_chat_id: options.chat_id,
message_id: options.message_id,
on_result: "/pin" //optional
})

Command: /id
BJS:
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
BJS:
// 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
)

Command: /pin (optional if you want)
BJS:
Api.pinChatMessage({message_id:options.result.message_id})


Creadit - @UnknownParadox
❤3
Looking to Create an Advanced Bot? 

If anyone is interested in creating an advanced bot like
@ExploitExpertBot
@LogoSellerXBot
@AutoPostDeleterBot
@iFileProBot

I can help! 

▎OFFER: 

- Normal Bot: $2 
- Advanced Bot: $10 

▎MESSAGE ME - @CyberXCoding
❤3
xCode pinned «Looking to Create an Advanced Bot?  If anyone is interested in creating an advanced bot like @ExploitExpertBot @LogoSellerXBot @AutoPostDeleterBot @iFileProBot I can help!  ▎OFFER:  - Normal Bot: $2  - Advanced Bot: $10  ▎MESSAGE ME - @CyberXCoding»
🩷 Random Anime Image BJS

Command - /pic
Bjs -
HTTP.get({
    url: "https://api.waifu.pics/sfw/waifu", success: "/succ)

Command - /succ
Bjs -
if (request.data) {
var message_id = request.message.message_id;
var chat_id = request.message.chat.id;

Api.deleteMessage({
chat_id: chat_id,
message_id: message_id
});
}

var anime = JSON.parse(content).url;
var captionText = `❤️‍🔥◉ 𝐈ᴍᴀɢᴇ 𝐆ᴇɴᴇʀᴀᴛᴇ 𝐑ᴇsᴜʟᴛ ◉ ❤️‍🔥
🌸 <a href="https://t.me/ShikimoriQxProBot">🔮 ShikimoriQx</a> 🌸 🖼️`;

var buttons = [
[
{ text: "ʀᴇғʀᴇsʜ", callback_data: "/pic" }
]
];

Api.sendPhoto({
photo: anime,
caption: captionText,
parse_mode: "html",
reply_markup: { inline_keyboard: buttons },
protect_content: true
});


Creadit - @Sonic_Coder
❤2👍1
⏳ Soon Addvanced Broadcast Bjs Coming ( without Api )
No Whole Users Issue ✅

📁 Photo + caption , Video + caption , File + caption etc. supported 🌟

🔝 All Type Markdown Supported


⭐️ Give 10+ Reactions to get Bjs

😅 Comment Now
Please open Telegram to view this post
VIEW IN TELEGRAM
❤5⚡3😁3👍1
xCode pinned «⏳ Soon Addvanced Broadcast Bjs Coming ( without Api ) No Whole Users Issue ✅ 📁 Photo + caption , Video + caption , File + caption etc. supported 🌟 🔝 All Type Markdown Supported ⭐️ Give 10+ Reactions to get Bjs 😅 Comment Now»
⚡ Advanced Broadcast Bjs ( V1.0 )

☺️ Link Button + inline Button Supported in new update V2.0 soon ⏳


🔝 Command - /broadcast ( Main Command 🌟 )
☺️ Bjs -
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
}
});


🔝 Command - /broadcast_task
☺️ Bjs -

if (!options) return;

Api.copyMessage({
chat_id: user.telegramid,
from_chat_id: options.from_chat_id,
message_id: options.message_id
});


🔝 Command - /broadcast_created
☺️ Bjs -

if (!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"
});


✅ Check Status Of Your Current Broadcast

Command - /status
var 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
});


⭐️ Setup your Admin I'd ( who Runned this Command First , bot will make admin of broadcast system )

🔝 Command - /setup
☺️ Bjs -
if (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"
});


⚡ Creadit - @CyberXCoding , @arijitiyan
☺️ Posted On - @Sonic_Bots
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4⚡2
xCode pinned «⚡ Advanced Broadcast Bjs ( V1.0 ) ☺️ Link Button + inline Button Supported in new update V2.0 soon ⏳ 🔝 Command - /broadcast ( Main Command 🌟 ) ☺️ Bjs - var admin_id = Bot.getProperty("admin_id"); if (!admin_id || user.telegramid.toString() !== admin_id.toString())…»
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…
⚡Start Command Bjs For 🚫 Anti Abuse Bot

🔝 Command - /start
☺️ Bjs -

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


⚡ Creadit - @CyberXCoding
☺️ Posted On - @Sonic_Bots
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4