en
Feedback
γ€Žππ‘π„πŒπˆπ”πŒ π‚πŽπƒπ„π’

γ€Žππ‘π„πŒπˆπ”πŒ π‚πŽπƒπ„π’

Open in Telegram

🚩 Channel was restricted by Telegram

Show more
No data
Subscribers
+2024 hours
+737 days
+9130 days
Posts Archive
❀️ WANT CC GENERATE CODES ⭐
Anonymous voting

πŸ€– Bots.Business Multiple Channels Joined Check BJS Code πŸ‘¨β€πŸ’»
❗️At First Make A /start Command Code.
example- πŸ‘©β€πŸ’» Command : /start
var button = [
  [{title: "πŸ§‘πŸ»β€πŸ’» πƒπžπ―πžπ₯𝐨𝐩𝐞𝐫", url: "https://t.me/+yqx-chT8ZgViZDU9"},  {title: "π‚π‘πšπ§π§πžπ₯", url: "https://t.me/Carders_hub2"}],
  [{title: "π‚π‘πšπ§π§πžπ₯", url: "https://t.me/Proof67"}],
  [{title: "βœ… Joined", command: "/joined"}]
];

Bot.sendInlineKeyboard(button, "*🌟 Join Our All Channels To Use Our Bot πŸ‘‡\n@CARDERS_HUB2
\n@ULTRA_HAT\n@Proof67\nAfter Joined Click On βœ… Joined*");
❗️Then /joined Command Code
πŸ‘©β€πŸ’» Command : /joined
var channels = ["@CARDERS_HUB2", "@ULTRA_HAT", "@Proof67"];  // Array of your multiple channels
HTTP.get({
  url: "https://bj-tricks.serv00.net/Channel-Join-Check/index.php?bot_token=" + bot.token + "&user_id=" + user.telegramid + "&chat_id=" + encodeURIComponent(JSON.stringify(channels)),
  success: "/check"
});
❗️ Then  /check Command Code
πŸ‘©β€πŸ’»Command - /check
if (content) {
  const { status, is_joined } = JSON.parse(content);

  if (status === "false") {
    return Bot.sendMessage("*Please make the bot an admin on your All channels*");
  }

  if (is_joined) {
    Bot.sendMessage("Thank You For Join Our Channels!");
    Bot.runCommand("/MainMenu")
  } else {
    Bot.sendMessage("*⚠️ You need to join all channels To Use Our Bot.*");
  }
}
❗️Donot Change Any Command Name ❗️Make The bot Admin in Your Multiple Channels ❗️You Can run Your Main menu Command Using Bot.runCommand(" MainMenu")
❀️ OWNED BY THIS MESSAGE SENDER  βœ…

π—₯𝗔𝗑𝗗𝗒𝗠 π—ͺπ—œπ—‘π—‘π—˜π—₯ π—–π—›π—’π—’π—¦π—˜π—₯ π—–π—’π——π—˜ 𝗕𝗝𝗦 π—–π—’π——π—˜β­ π—–π—’π——π—˜ - 𝗕𝗒𝗧 π—•π—¨π—¦π—œπ—‘π—˜π—¦π—¦  πŸ˜„ π—§π—¬π—£π—˜ - π—₯𝗔𝗑𝗗𝗒𝗠 π—ͺπ—œπ—‘π—‘π—˜π—₯ 𝗖𝗒𝗠𝗠𝗔𝗑𝗗 - /prc 𝗕𝗝𝗦 -
// List of participants
var participants = ["Participant 1", "Participant 2", "Participant 3", "Participant 4", "Participant 5"];

// Randomly choose a winner
var winner = participants[Math.floor(Math.random() * participants.length)];

// Send the winner announcement
Api.sendMessage({text: "πŸŽ‰ The winner is: " + winner});
❀️ OWNED BY THIS MESSAGE SENDER  βœ…

βœ”οΈHIDE ADS IN YOUR BB BOT ⭐ πŸ’Ž BJS CODES :-
var bb_ad_settings = {
    hide_ads: true
};
Bot.sendMessage("YOUR ADS HIDE  ")
❀️ OWNED BY THIS MESSAGE SENDER  βœ…

πŸ”ˆText to speech Php Bot Code
<?php

$TELEGRAM_TOKEN = "YOUR_TELEGRAM_BOT_TOKEN"; // Replace with your Telegram Bot API token
$WEBHOOK_URL = "https://yourdomain.com/bot.php"; // Replace with your webhook URL

// Set the webhook (do this only once)
// Uncomment the line below to set up the webhook
// file_get_contents("https://api.telegram.org/bot{$TELEGRAM_TOKEN}/setWebhook?url={$WEBHOOK_URL}");

// Get updates from Telegram
$update = json_decode(file_get_contents("php://input"), true);

if (isset($update["message"])) {
    $chat_id = $update["message"]["chat"]["id"];
    $text = isset($update["message"]["text"]) ? $update["message"]["text"] : "";
    
    // Check if the message is a command containing the language code
    if (preg_match('/^\/tts\s+(\w{2})\s+(.*)$/', $text, $matches)) {
        $lang = $matches[1]; // Extract language code
        $textToSpeak = $matches[2]; // Extract text to convert to speech

        if (empty($textToSpeak)) {
            $reply = "Text parameter cannot be empty.";
        } elseif (strlen($lang) != 2) {
            $reply = "Invalid language code. Language codes must be 2 characters in length.";
        } else {
            $encodedText = urlencode($textToSpeak);
            $url = "https://translate.google.com/translate_tts?ie=UTF-8&q={$encodedText}&tl={$lang}&total=1&idx=0&textlen=24&client=tw-ob&prev=input&ttsspeed=1";

            // Send audio file as a voice message
            $reply = $url;
        }
    } else {
        $reply = "Please send a command in the format: /tts {lang_code} {text}";
    }

    // Send response back to Telegram
    if (filter_var($reply, FILTER_VALIDATE_URL)) {
        sendAudio($chat_id, $reply);
    } else {
        sendMessage($chat_id, $reply);
    }
}

// Function to send a message
function sendMessage($chat_id, $message) {
    global $TELEGRAM_TOKEN;
    $sendMessageUrl = "https://api.telegram.org/bot{$TELEGRAM_TOKEN}/sendMessage?chat_id={$chat_id}&text=" . urlencode($message);
    file_get_contents($sendMessageUrl);
}

// Function to send audio (voice)
function sendAudio($chat_id, $audioUrl) {
    global $TELEGRAM_TOKEN;
    $sendAudioUrl = "https://api.telegram.org/bot{$TELEGRAM_TOKEN}/sendAudio?chat_id={$chat_id}&audio=" . urlencode($audioUrl);
    file_get_contents($sendAudioUrl);
}
?>
πŸŽ™Usage - /tts {lang_code} {text} ❀️ OWNED BY THIS MESSAGE SENDER  βœ…

πŸ“Ή YouTube Video Details BJS. πŸŽ– Command:- * ❀️ BJS:-
var spl = message.split("/")
var lin = spl[3]
var id = lin.split("?")[0]
HTTP.get({
  url:
    "https://www.googleapis.com/youtube/v3/videos?id=" +
    id +
    "&key=your api&part=snippet,contentDetails,statistics,status",
  success: "/n"
})
πŸŽ– Command:- /n ❀️ BJS:-
var yt = JSON.parse(content)
var pub = yt.items[0].snippet.publishedAt
var chid = yt.items[0].snippet.channelId
var title = yt.items[0].snippet.title
//var des = yt.items[0].snippet.description
var tumb = yt.items[0].snippet.thumbnails.maxres.url
var chnlnam = yt.items[0].snippet.channelTitle
var kids = yt.items[0].status.madeForKids
var privacy = yt.items[0].status.privacyStatus
var views = yt.items[0].statistics.viewCount
var like = yt.items[0].statistics.likeCount
var comment = yt.items[0].statistics.commentCount

var txt = `⚑️ <b>Title:</> <i>${title}</>

πŸ‘€ <b>Total Views:</> <code>${views}</>

πŸ‘ <b>Total Likes:</> <code>${like}</>

πŸ’¬ <b>Total Comments:</> <code>${comment}</>

☣ <b>Video Status:</> <i>${privacy}</>

πŸ‘¦ <b>Video For Kids:</> <i>${kids}</>

πŸ’Ή <b>Channel Name:</> <i>${chnlnam}</>

πŸ†” <b>Channel ID:</> <code>${chid}</>`

Api.sendPhoto({
  photo: tumb,
  caption: txt,
  parse_mode: "html",
  disable_web_page_preview: true
})
πŸ’ž Get Api From:- https://www.googleapis.com
☣ Note:- This Bjs Working Only For Long Video Not Short. ❀️ OWNED BY THIS MESSAGE SENDER  βœ…

Number Validater Bjs πŸ‘β€πŸ—¨Command: * πŸ“BJS:
 Api.sendChatAction({
  chat_id: user.telegramid,
  action: "typing"
})
HTTP.get({
  url:
   "https://tajammalmods.xyz/Validater.php?num="+encodeURIComponent(message),
  success: "/response"
})
- πŸ‘β€πŸ—¨Command: /response πŸ“BJS:
var data = JSON.parse(content);
var carrier = data.carrier;
var country = data.country;
var internationalFormat = data.international_format;
var lineType = data.line_type;
var nationalFormat = data.national_format;
var timeZones = data.time_zones;

// Maked By PAK TRICK 
var responseMessage =   "\n" +
                      "πŸ“ΆCarrier: " + carrier + "\n" +
                      "πŸ—ΎCountry: " + country + "\n" +
                      "🌍International Format: " + internationalFormat + "\n" +
                      "🏞️National Format: " + nationalFormat + "\n" +
                      "πŸ•œTime Zones: " + timeZones;

// Send the message
Bot.sendMessage(responseMessage);
-

β›“ Auto Bed Time πŸ’€πŸ•“ BJS:- It's Working Between 12:00 AM to 6:00 AM (Indian Time). ❀️ Command:- @ ☣ BJS:-
function getIndianTime() {
  var now = new Date()
  var options = {
    timeZone: "Asia/kolkata",
    hour12: true,
    hour: "numeric",
    minute: "numeric",
    second: "numeric"
  }
  return now.toLocaleString("en-US", options)
}
function isRestricted() {
  var now = new Date()
  var bdTime = new Date(
    now.toLocaleString("en-US", { timeZone: "Asia/kolkata" })
  )
  var currentHour = bdTime.getHours()
  return currentHour >= 0 && currentHour < 6 // Returns true if it's between 12:00 AM and 6:00 AM Indian time
}
if (isRestricted()) {
  informRestrictedTime()
} else {
}
function informRestrictedTime() {
  var remainingTime = getRemainingTime()
  var up =
    "<b>πŸ›οΈ It's Bed Time, So You Can Use Currently This Bot.</>\nβ”β”β”β”β”β”β”β”β”β€’β…β€’Β°β€’βˆβ€’Β°β€’β…β€’β”β”β”β”β”β”β”β”β”\n<b>βŒ› Remaining Time:</> <code>" +
    remainingTime +
    "</>\nβ”β”β”β”β”β”β”β”β”β€’β…β€’Β°β€’βˆβ€’Β°β€’β…β€’β”β”β”β”β”β”β”β”β”\n<b>😎 Please Come Back After Bed Time.</>"
  var bob = [[{ text: "πŸ”„ Refresh", callback_data: "8388" }]]
  if (request.message_id) {
    Api.sendMessage({
      text: up,
      parse_mode: "html",
      reply_markup: { inline_keyboard: bob }
    })
    return
  }
  Api.editMessageText({
    message_id: request.message.message_id,
    text: up,
    parse_mode: "html",
    disable_web_page_preview: true,
    reply_markup: { inline_keyboard: bob }
  })
}
function getRemainingTime() {
  var now = new Date()
  var bdTime = new Date(
    now.toLocaleString("en-US", { timeZone: "Asia/kolkata" })
  )
  var currentHour = bdTime.getHours()
  if (currentHour < 6) {
    var remainingHours = 6 - currentHour
    var remainingMinutes = 60 - bdTime.getMinutes()
    var remainingSeconds = 60 - bdTime.getSeconds()
    return (
      remainingHours +
      " hours, " +
      remainingMinutes +
      " minutes, " +
      remainingSeconds +
      " seconds"
    )
  } else {
    return "Come back later"
  }
}
⚠️ Must Need Download Date & Time Libs.
❀️ OWNED BY THIS MESSAGE SENDER  βœ…

HOW TO USE THIS ALL CODES FIRST JO TO PLAY STORE AND INSTAL BOT BUSINESS APP THEN IN DOWN YOU SEE A + ICON CLICK ON IT THEN SHOW ENTER BOT NAME AND TOKEN MAKE BOT FORM BOT FATHER BOT ON TG THEN IN DASHBOARD CLICK ON DASHBOARD AND CLICK ON COMMAND THEN IN ALL CODES I WILL GIVE YOU COMMAND NAMES AND CODES LIKE COMMAND NAME /START BJ'S THEN PUT ALL COMMANDS NAME AND CORES THEN ONE TIME BACK AND CLICK ON LOUCH YOUR BOT WILL BE READY AND CHECK YOUR BOT WORKING FULLY

❓ Request: User Authorisation To Use Bot.
πŸ‘€Command: /start
let stat = Bot.getProperty("" + user.telegramid + "")
  Bot.sendMessage("β˜‘ Your Verification Request Sent To My Admin")
  let inl = [
    [
      {
        text: "βœ…οΈ Accept Verification",
        callback_data: "/verify con " + user.telegramid
      },
      {
        text: "❌ Reject Verification",
        callback_data: "/verify can " + user.telegramid
      }
    ]
  ]
  Api.sendMessage({
    chat_id: 6441170997, // admin tg id here
    text:
      "<b>⛱️ New Verify Request!\n\nπŸ†” User Telegram Id : </b><code>" +
      user.telegramid +
      "</code>\n\n<b>☣️ User First Name : </b><code>" +
      user.first_name +
      "</code>\n\n<b>β™ˆ User Name : @" +
      user.username +
      "</b>",
    parse_mode: "html",
    reply_markup: { inline_keyboard: inl }
  })


if (stat = "true") {
  Bot.runCommand("/main_menu") // Change This Command With Your
}
πŸ‘€Command: /verify
let receive = params.split(" ")
let amo = receive[0]
let clus = receive[1]
if ((amo = "can")) {
  Api.deleteMessage({ message_id: request.message.message_id })
  Bot.sendMessage("❌ Verification Rejected!")
  Bot.setProperty("" + clus + "", "false", "string")
  Api.sendMessage({
    chat_id: clus,
    text: "☹️ Your Verification Has Been Rejected By Admin"
  })
  return
}
if ((amo = "con")) {
  Api.deleteMessage({ message_id: request.message.message_id })
  Bot.sendMessage("βœ…οΈ Verification Accepted!")
  Bot.setProperty("" + clus + "", "true", "string")
  Api.sendMessage({
    chat_id: clus,
    text: "😍 Your Verification Has Been Accepted By Admin\n\nNow Hit /start"
  })
  return
}
❀️ OWNED BY THIS MESSAGE SENDER  βœ…

FORWARD TAG REMOVER GIVE ADMIN ON YOUR CHANNEL AND GIVE MESSAGE DELETE PRMESSION

// Function that triggers when a new message is posted in the channel
Bot.on("message", function(msg) {
    // Check if the message is forwarded from another chat
    if (msg.forward_from || msg.forward_from_chat) {
        // If it's a forwarded message, delete it
        Api.deleteMessage({
            chat_id: msg.chat.id,
            message_id: msg.message_id
        });

        // Optionally, notify the user who posted the message (if needed)
        Bot.sendMessage("Forwarded messages are not allowed in this channel.");
    }
});

πŸ§ͺ Get Forward Message Info From Channel. πŸ”° Command:- your command 🎊 Answer:- *🦜 Forward Message From Channel.* βœ… Wait For Answer:- On 🌐 BJS:-
if (request.forward_from_chat) {
  var id = request.forward_from_chat.id.toString()
  var uname = request.forward_from_chat.username
  var title = request.forward_from_chat.title
  var type = request.forward_from_chat.type
  var msg_id = request.forward_from_message_id

  if (request.forward_date) {
    var ttmm = request.forward_date * 1000
  } else {
    var ttmm = request.date * 1000
  }

  var date_time = Libs.DateTimeFormat.format(
    ttmm,
    "dddd, dd/m/yyyy",
    "Asia/Kolkata"
  )

  if (!uname || uname == null) {
    var username = `🚫 Not Set`
  } else {
    var username = "@" + uname
  }

  var uss =
    "<a href='https://t.me/c/" + id.slice(4) + "/" + msg_id + "'>Check Now</a>"

  var txt = `πŸ¦‹ <b>Title:</b> ${title}\n\n▫️ <b>Type:</b> ${type}\n\n🎷 <b>Chat ID:</b> <code>${id}</code>\n\n🌹 <b>Username:</b> ${username}\n\nπŸ•°οΈ <b>Posted On:</b> ${date_time}\n\nπŸ₯· <b>Message Link:</b> ${uss}`

  Api.sendMessage({ text: txt, parse_mode: "html" })
} else {
  Api.deleteMessage({ message_id: request.message_id })
}
πŸ’  Must Download Date/Time Libs.
❀️ OWNED BY THIS MESSAGE SENDER βœ…

To convert between two currencies using the CurrencyQuote library in Bots Business, you can utilize the convert method provided by this library Here is an example of how you can perform a currency conversion using the CurrencyQuote convert method:
var amount = 100; // The amount you want to convert
var from_currency = "USD"; // The currency you are converting from
var to_currency = "EUR"; // The currency you are converting to

// Use the CurrencyQuote convert method to perform the conversion
var result = CurrencyQuote.convert({ amount: amount, from: from_currency, to: to_currency });

// Output the result of the conversion
Bot.sendMessage("Converted amount: " + result);
In this code snippet: - amount represents the value you want to convert - from_currency is the currency code you are converting from (e g , USD for US Dollar) - to_currency is the currency code you are converting to (e g , EUR for Euro) - CurrencyQuote convert is used to perform the actual conversion - Finally, the converted amount is displayed using Bot sendMessage Make sure to replace the currency codes and amounts with your specific values for the conversion you want to execute ❀️ OWNED BY ADMINS βœ