γπππππππ πππππ
Open in Telegram
No data
Subscribers
+2024 hours
+737 days
+9130 days
Posts Archive
β€οΈ WANT CC GENERATE CODES β
π€ 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 β
+1
WHATSAPP NAMBAR AVAILABLE π
PRICE: 100 π
ONLY 3 MORE AVAILABLE π
DM: @ANAS_Q_0099 β
π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 β
