xCode
291 subscribers
22 photos
2 videos
3 files
46 links
Download Telegram
🌟 New Group Help Bot Coming ( ai powered )
see the demo in image

give 10+ reactions so i can give this bot access to you all and you can use it in your groups

if you want me to create this type of bots for you
Contact me - @CyberXCoding ( Paid )
❤8🔥5😁2👎1
xCode pinned a photo
🌟 Group Name Changer TBL Code

Command - /change
Example: /change Group Name

TBL Code -
/* Command: /change */

// Step 1: Check if this is a group or supergroup
if (chat.type === "private") {
Bot.sendMessage("This command can only be used in groups.");
return;
}

// Step 2: Check if the user provided a new name in 'params'
let newTitle = params;
if (!newTitle) {
Bot.sendMessage("Please provide a new name.\nUsage: /change <new group name>");
return;
}

// Step 3: Check if the user sending the command is an admin or owner
let userMember = await Api.getChatMember({
chat_id: chat.id,
user_id: user.id
});

// Check if the API call was successful
if (!userMember.ok) {
Bot.sendMessage("Error: Could not verify your permissions.");
return;
}

// Check the user's status
let userStatus = userMember.result.status;
if (userStatus !== "administrator" && userStatus !== "creator") {
Bot.sendMessage("Sorry, only group admins and the owner can use this command.");
return;
}

// Step 4: Check if the bot is an admin and has the right permission
let botMember = await Api.getChatMember({
chat_id: chat.id,
user_id: bot.bot_id // bot.bot_id is the bot's own Telegram ID
});

if (!botMember.ok) {
Bot.sendMessage("Error: Could not verify my own permissions.");
return;
}

// Check if the bot is an admin AND has the 'can_change_info' permission
if (botMember.result.status !== "administrator") {
Bot.sendMessage("I am not an admin in this group. Please promote me first.");
return;
}

if (!botMember.result.can_change_info) {
Bot.sendMessage("I am an admin, but I'm missing the 'Change Group Info' permission.");
return;
}

// Step 5: All checks passed. Attempt to change the group title.
try {
let result = await Api.setChatTitle({
chat_id: chat.id,
title: newTitle
});

if (result.ok) {
// You can send a confirmation message
Bot.sendMessage("✅ Group title has been changed to: " + newTitle);
} else {
// Send a specific error if Telegram rejects it
Bot.sendMessage("Failed to change title. Telegram error: " + result.description);
}
} catch (e) {
Bot.sendMessage("An unexpected error occurred: " + e.message);
}


Pleatform - telebothost.com
Creadit - https://gemini.google.com/gem/1Ef-plIMo6G6dFOjB2I85CrzCnrqbbcd3?usp=sharing ( TBL Helper Ai )
❤3
🌟 instagram Downloader TBL Code

Command - *
TBL -
/* Command: insta_dl */
if (message) {
const instaRegex = /(?:https?:\/\/)?(?:www\.)?instagram\.com\/(p|reel|tv)\/([a-zA-Z0-9\-_]+)/;

// TBL does not support setTimeout or run delayed/scheduled tasks.
// The maximum synchronous sleep is 10 seconds.

// Step 1: Delete user's sent message
Api.deleteMessage({ chat_id: chat.id, message_id: msg.message_id });

// Step 2: Check if URL is valid (message is the global variable for text content [cite: 45])
if (!instaRegex.test(message)){
Api.sendMessage({
chat_id: chat.id,
text: "❌ <b>Iɴᴠᴀʟɪᴅ Fᴏʀᴍᴀᴛ</b>\n\nPʟᴇᴀsᴇ sᴇɴᴅ ᴀ ᴠᴀʟɪᴅ Iɴsᴛᴀɢʀᴀᴍ ʀᴇᴇʟ/ᴘᴏsᴛ ʟɪɴᴋ.",
parse_mode: "HTML"
});
return;
}

// Step 3: Send wait message and capture the API response object for editing/deleting
let waitMsgRes = await Api.sendMessage({
chat_id: chat.id,
text: "<b>⏳ Dᴏᴡɴʟᴏᴀᴅɪɴɢ...</b>",
parse_mode: "HTML"
});

// Extract message_id from API response (options is the response when using await [cite: 68])
const waitMsgId = waitMsgRes.result.message_id;

try {
const apiUrl = `https://tele-social.vercel.app/down?url=${encodeURIComponent(message)}`;
// Use HTTP class for external requests [cite: 87]
const res = await HTTP.get({ url: apiUrl, timeout: 25000 });

if (res.ok && res.data && res.data.status === true) {
const mediaUrl = res.data.data.media.video || res.data.data.media.image;
if (!mediaUrl) throw new Error("Media URL not found.");

const caption = `✅ <b>Dᴏᴡɴʟᴏᴀᴅ Cᴏᴍᴘʟᴇᴛᴇ!</b>\n🤖 Dᴏᴡɴʟᴏᴀᴅᴇᴅ ᴠɪᴀ @${bot.name}`;

// Send video or photo using Api methods (case insensitive [cite: 61])
if (res.data.data.type === "video") {
await Api.sendVideo({ chat_id: chat.id, video: mediaUrl, caption: caption, parse_mode: "HTML" });
} else {
await Api.sendPhoto({ chat_id: chat.id, photo: mediaUrl, caption: caption, parse_mode: "HTML" });
}

// Delete the wait message after the media is sent
await Api.deleteMessage({ chat_id: chat.id, message_id: waitMsgId });
} else {
throw new Error((res.data && res.data.message) ? res.data.message : "Could not process link.");
}
} catch (err) {
// Edit the wait message on failure
await Api.editMessageText({
chat_id: chat.id,
message_id: waitMsgId,
text: `<b>❌ Dᴏᴡɴʟᴏᴀᴅ Fᴀɪʟᴇᴅ</b>\n<b>Rᴇᴀsᴏɴ:</b> <i>${err.message}</i>`,
parse_mode: "HTML"
});
}
}


Creadit - https://chatgpt.com/g/g-690a0a4ffde4819193a77612b76d05e5-tbl-helper-ai
this is TBL helper ai and now available on ChatGPT Store
❤3🥰2
Please Give 5 star 🌟 Review on our Custom GPT

https://chatgpt.com/g/g-690a0a4ffde4819193a77612b76d05e5-tbl-helper-ai
❤5👍2
xCode pinned a photo
🌟 URL Unshortner TBL Code

Command - /unshort
TBL Code -
if (!params) {
  Bot.sendMessage(
    "*✅ Pʟᴇᴀꜱᴇ ꜱᴇɴᴅ ᴀ ꜱʜᴏʀᴛᴇɴᴇᴅ ᴜʀʟ*\n\n*Example:*\n/unshort [https://bit.ly/xxxx](https://bit.ly/xxxx)",
    { parse_mode: "Markdown" }
  );
  return;
}

let shortUrl = params.trim();

if (!modules.validator.isURL(shortUrl)) {
  Bot.sendMessage(
    "*❌ Iɴᴠᴀʟɪᴅ ᴜʀʟ ꜰᴏʀᴍᴀᴛ*",
    { parse_mode: "Markdown" }
  );
  return;
}

let anim = await Api.sendMessage({
  chat_id: chat.id,
  text: "*Uɴꜱʜᴏʀᴛɪɴɢ 10% ▓░░░░░░░░*",
  parse_mode: "Markdown",
  disable_web_page_preview: true
});

sleep(400);
Api.editMessageText({
  chat_id: chat.id,
  message_id: anim.result.message_id,
  text: "*Uɴꜱʜᴏʀᴛɪɴɢ 20% ▓▓░░░░░░░*",
  parse_mode: "Markdown",
  disable_web_page_preview: true
});

sleep(400);
Api.editMessageText({
  chat_id: chat.id,
  message_id: anim.result.message_id,
  text: "*Uɴꜱʜᴏʀᴛɪɴɢ 30% ▓▓▓░░░░░░*",
  parse_mode: "Markdown",
  disable_web_page_preview: true
});

let percent = 30;

while (percent < 100) {
  percent += Libs.random.randomInt(12, 20);
  if (percent > 100) percent = 100;

  let filled = Math.floor(percent / 10);
  let empty = 10 - filled;
  let bar = "▓".repeat(filled) + "░".repeat(empty);

  sleep(250);
  Api.editMessageText({
    chat_id: chat.id,
    message_id: anim.result.message_id,
    text: "*Uɴꜱʜᴏʀᴛɪɴɢ " + percent + "% " + bar + "*",
    parse_mode: "Markdown",
    disable_web_page_preview: true
  });
}

sleep(400);

let res = await HTTP.get({
  url: "https://unshorten.me/json/" + encodeURIComponent(shortUrl),
  timeout: 6000
});

if (!res.ok || !res.data) {
  Api.editMessageText({
    chat_id: chat.id,
    message_id: anim.result.message_id,
    text: "*❌ Fᴀɪʟᴇᴅ ᴛᴏ ᴜɴꜱʜᴏʀᴛ ᴛʜᴇ ᴜʀʟ*",
    parse_mode: "Markdown"
  });
  return;
}

let finalUrl = res.data.resolved_url || res.data.full_url;

if (!finalUrl) {
  Api.editMessageText({
    chat_id: chat.id,
    message_id: anim.result.message_id,
    text: "*❌ Cᴏᴜʟᴅ ɴᴏᴛ ʀᴇꜱᴏʟᴠᴇ ᴛʜɪꜱ ʟɪɴᴋ*",
    parse_mode: "Markdown"
  });
  return;
}

Api.editMessageText({
  chat_id: chat.id,
  message_id: anim.result.message_id,
  text:
    "*✅ Uɴꜱʜᴏʀᴛᴇɴᴇᴅ ᴜʀʟ*\n\n" +
    "`" + finalUrl + "`\n\n" +
    "*━━━━━━━━━━━━━━━━━━*\n" +
    "*Sᴛᴀᴛᴜꜱ:* Rᴇꜱᴏʟᴠᴇᴅ\n" +
    "*Vɪᴀ:* unshorten.me",
  parse_mode: "Markdown",
  disable_web_page_preview: true,
  reply_markup: {
    inline_keyboard: [
      [
        { text: "Cᴏᴘʏ Uʀʟ", copy_text: { text: finalUrl } },
        { text: "Oᴘᴇɴ", url: finalUrl }
      ]
    ]
  }
});


Creadit - @CyberXCoding
Pleatform -  telebothost.com
❤1
Is your Render app sleeping?
Wake it up instantly with @UptimeFlarexBot ⚡️
Always-on monitoring. No downtime.


🌟 By - @CyberXCoding
🔥1
xCode pinned a photo
𓆩 ʜᴀᴘᴘʏ ɴᴇᴡ ʏᴇᴀʀ 𝟸𝟶𝟸𝟼 𓆪

╭━━━━━ ✦ ✧ ✦ ━━━━━╮

ᴍᴀʏ ᴛʜɪs ɴᴇᴡ ʏᴇᴀʀ ʙʀɪɴɢ ʏᴏᴜ
ʜᴀᴘᴘɪɴᴇss, ᴘᴇᴀᴄᴇ, ɢᴏᴏᴅ ʜᴇᴀʟᴛʜ,
ᴀɴᴅ ᴇɴᴅʟᴇss ᴏᴘᴘᴏʀᴛᴜɴɪᴛɪᴇs ғᴏʀ ɢʀᴏᴡᴛʜ

╰━━━━━ ✦ ✧ ✦ ━━━━━╯

💙 ᴡɪsʜɪɴɢ ʏᴏᴜ ᴀɴᴅ ʏᴏᴜʀ ғᴀᴍɪʟʏ
ᴀ ᴊᴏʏғᴜʟ, ᴘʀᴏsᴘᴇʀᴏᴜs, ᴀɴᴅ ʙʟᴇssᴇᴅ ɴᴇᴡ ʏᴇᴀʀ

ᴍᴀʏ 𝟸𝟶𝟸𝟼 ʙᴇ ғɪʟʟᴇᴅ ᴡɪᴛʜ ʜᴏᴘᴇ, ᴘᴏsɪᴛɪᴠɪᴛʏ,
ᴀɴᴅ ɴᴇᴡ ʙᴇɢɪɴɴɪɴɢs

@xBotsBusiness
Our TBL Helper AI has crossed 300+ conversations 🎉  on ChatGPT store

Try it and build your bots on telebothost.com -
https://chatgpt.com/g/g-690a0a4ffde4819193a77612b76d05e5-tbl-helper-ai

It is an AI assistant designed specially for:
• Telegram Bot Development 
• TeleBot Lang (TBL) 
• Automation & Bot Logic 

More updates, features & tools coming soon.

#Telegram #TelegramBots #ChatGPT #Programming #Developers
❤5
🌟 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:
https://t.me/xBotsBusiness/25
https://t.me/xBotsBusiness/25
🌈 Wᴇʙsɪᴛᴇ Sᴄʀᴇᴇɴsʜᴏᴛ Gᴇɴᴇʀᴀᴛᴏʀ Bᴊs

Wᴇʙsɪᴛᴇ Sᴄʀᴇᴇɴsʜᴏᴛ Gᴇɴᴇʀᴀᴛᴏʀ Bᴊs ( Bᴏᴛs.Bᴜsɪɴᴇss )
🔮 Cᴏᴍᴍᴀɴᴅ ❥ /screenshot
Wᴀɪᴛ Fᴏʀ Aɴsᴡᴇʀ Oɴ ✅
🌈 Bᴊs ❥
Api.sendPhoto({
photo:
"https://image.thum.io/get/width/1200/png/" +
message,
caption: "<b>SᴄʀᴇᴇɴSʜᴏᴛ Gᴇɴᴇʀᴀᴛᴇᴅ ✅</b>",
parse_mode: "HTML"
})

Cʀᴇᴀᴅɪᴛ ❥ @CyberXCoding
Host it on app.bots.business
🔥2👎1
Wᴇʙsɪᴛᴇ Sᴄʀᴇᴇɴsʜᴏᴛ Gᴇɴᴇʀᴀᴛᴏʀ TBL ( TᴇʟᴇBᴏᴛHᴏsᴛ )

🔮 Cᴏᴍᴍᴀɴᴅ ❥
/screenshot
Wᴀɪᴛ Fᴏʀ Aɴsᴡᴇʀ Oɴ ✅
TBL ❥
Api.sendPhoto({
photo:
"https://image.thum.io/get/width/1200/png/" +
message,
caption: "<b>SᴄʀᴇᴇɴSʜᴏᴛ Gᴇɴᴇʀᴀᴛᴇᴅ ✅</b>",
parse_mode: "HTML"
})



Cʀᴇᴀᴅɪᴛ ❥ @CyberXCoding
Works in both telebothost.com and app.bots.business
❤3👍3👎1