Bot Nations ๐Ÿš€
17.1K subscribers
18 photos
1 video
3 files
53 links
๐Ÿ–๐Ÿป Welcome to โ€œBot Nationsโ€!

๐Ÿค– Hello, Everyone! Here, Iโ€™ll Teach You How To Create Telegram Bots.

โžก Join Our Discussion Group: @Private_Bots_Chats

๐Ÿ“ž For Sponsorships, Ads, or Promotions, Contact Us At @PB_Sponsorship.
Download Telegram
๐ŸŽฌ Claim Your Movies Bot Today! ๐ŸŽฌ

Unlock your exclusive access to the Movies Bot in just a few easy steps:

1๏ธโƒฃ Visit:
@private_bots_chats 
2๏ธโƒฃ Send a message using the following format:


/send {your TBC email}

Example:

/send
swastikraj127@gmail.com


โœ… Instant Delivery 
โšก Secure Access 
๐ŸŽฅ Enjoy Seamless Movie Management!
๐Ÿ‘8โค3
Give another bot ideas
๐Ÿ”ฅ8๐Ÿ‘6
๐ŸŽš Auto Approve Bot [Bots Business Codes]

โ“ This BJS, Auto Accept User Chat Join Request. Just Add The Tpy And Make The Bot Admin Where You Want To Work.


๐Ÿ’“ Command:
*

๐Ÿ” BJS :

if (!request) return

if (typeof request === "string") {
try {
request = JSON.parse(request)
} catch (e) {
return
}
}

let info = request.chat_join_request

if (info) {
Api.sendMessage({
chat_id: info.from.id,
text: "Your request to join the channel has been accepted."
})

Api.approveChatJoinRequest({
chat_id: info.chat.id,
user_id: info.from.id
})
}


๐Ÿ‘จโ€๐Ÿ’ป Created(or Copyright) By: Siya Bots
๐Ÿ‘4๐Ÿ”ฅ3
โค6๐Ÿฅฐ5๐ŸŽ‰5๐Ÿ‘3โคโ€๐Ÿ”ฅ2๐Ÿ”ฅ2โšก1๐Ÿซก1
๐ŸŽšSticker to Video Converter [TeleBot Creator Code]

โ“How to Use the Sticker to Video Converter:

1. Reply to a sticker with: 
  
/sticker2video 

2. Wait for the video! ๐ŸŽ‰


๐Ÿ’“ Command:
/sticker2video

๐Ÿ” TPY :

if not message.reply_to_message or not message.reply_to_message.sticker:
    Bot.sendMessage(
        chat_id=message.chat.id,
        text="โŒ *Please reply to a sticker to convert it to a video!*",
        parse_mode="Markdown",
        reply_to_message_id=message.message_id
    )
else:
    sticker_id = message.reply_to_message.sticker.file_id
    file_data = bot.getFile(sticker_id)  # Downloads the sticker
    file_bytes = bot.downloadFile(file_data.file_path)  # Converts the sticker into bytes
   
    Bot.sendVideo(
        chat_id=message.chat.id,
        video=file_bytes,
        caption="๐ŸŽฅ Here is your sticker as a video!",
        reply_to_message_id=message.message_id
    )


๐Ÿ‘จโ€๐Ÿ’ป Created(or Copyright) By: Y U R A
๐Ÿ‘7โค2
Need Truecaller api??

Drop reaction
๐Ÿฅฐ17๐Ÿ‘14๐Ÿ†7๐Ÿ”ฅ5โค4๐Ÿ‘Œ3๐Ÿ†’2๐Ÿ’ฏ1
๐Ÿš€ Introducing the Truecaller Lookup API!

Need details about a phone number for verification or identification? Our brand-new API offers real-time lookup powered by Truecaller data to help you fetch information like carrier, location, and more!

๐Ÿ”— Sample API Request:
https://truecaller.privates-bots.workers.dev/?q={phone_number}


๐Ÿ”— Example:
https://truecaller.privates-bots.workers.dev/?q=+91xxxxxxx


๐Ÿ’ก How It Works:
Just replace {phone_number} in the API request with the number you want to check (including the country code). Instantly receive details including location, carrier, and name information!

๐ŸŒ Join Our Community:
For updates, support, and discussions, join our group/channel: @BotNations

๐Ÿ”ฐ Creator: @BotNations 
ยฉ Copyright: @BotNations
๐Ÿ‘3๐Ÿฅฐ3
๐Ÿ”Ž Truecaller Lookup Bot [Bots Business Code]

---

๐ŸŒ Command: /truecaller 
โ›“๏ธ BJS:
let phone = params; 

if (!phone) {
Bot.sendMessage("Send like /truecaller +9174846744");
return;
}

HTTP.get({
url: "https://truecaller.privates-bots.workers.dev/?q=" + encodeURIComponent(phone),
success: "/onTruecallerSuccess",
error: "/onTruecallerError"
});


โœ… Command: /onTruecallerSuccess 
๐Ÿงพ BJS:
let res = JSON.parse(content);

let msg = "โœ… Lookup Result:\n\n";
msg += "Phone: " + res.international_format + "\n";
msg += "Carrier: " + res.carrier + "\n";
msg += "Country: " + res.country + "\n";
msg += "Location: " + res.location + "\n";
msg += "Timezones: " + res.timezones + "\n";
msg += "Truecaller Name: " + res.Truecaller + "\n";
msg += "Other Info: " + res.Unknown + "\n";

Bot.sendMessage(msg);


โš ๏ธ Command: /onTruecallerError 
๐Ÿงพ BJS:
Bot.sendMessage("Sorry, we couldn't fetch the data. Please try again later or check the number format.");

๐Ÿ‘จโ€๐Ÿ’ป Created By: @Swastik_Raj 
ยฉ Copyright: @BotNations 
๐Ÿ“ข Feel free to share and give credit if you use this in your channel!
๐Ÿ‘7โค1
โคโ€๐Ÿ”ฅ2๐Ÿ‘2โค1๐ŸŽ‰1
๐Ÿ’ก TBC Broadcast Working Code All Type Like Photo Video Etc!


โžก๏ธ Command:- /broadcast


# Admin ID
admin_id = "5960085256"

# Command: /broadcast
if admin_id != str(u):
raise ReturnCommand()

if options is None:
bot.replyText(
u,
"<b>๐ŸŽ™๏ธ Send Any Message to Broadcast in HTML\n\nTo Cancel: /cancel</b>",
parse_mode="html",
)
Bot.handleNextCommand("/broadcast", options=True)
raise ReturnCommand()

if message.text == "/cancel":
bot.sendMessage(
chat_id=u, text="<b>โŒ Broadcast Cancelled</b>", parse_mode="html"
)
raise ReturnCommand()


file_types = {
"photo": ("send_photo", message.photo[0].file_id if message.photo else None),
"video": ("send_video", message.video.file_id if message.video else None),
"audio": ("send_audio", message.audio.file_id if message.audio else None),
"document": ("send_document", message.document.file_id if message.document else None),
"sticker": ("send_sticker", message.sticker.file_id if message.sticker else None),
"animation": ("send_animation", message.animation.file_id if message.animation else None),
"voice": ("send_voice", message.voice.file_id if message.voice else None),
}

response = None # To store broadcast response
for key, (func, file_id) in file_types.items():
if file_id:
# Send the file with an optional caption
caption = message.caption if 'caption' in message else ""
response = Bot.broadcast(
function=func,
**{key: file_id},
caption=caption if func != "send_sticker" else None,
)
break


if not response and message.text:
response = Bot.broadcast(function="send_message", text=message.text, parse_mode="html")
elif not response and message.forward_from:
response = Bot.broadcast(
function="forward_message",
from_chat_id=message.chat.id,
message_id=message.message_id,
)

success_msg = (
"Broadcast completed successfully! โœ…"
if response and 'broadcast_id' in response
else "Broadcast failed! โŒ"
)
bot.sendMessage(chat_id=u, text=success_msg)

โš ๏ธ ๐†ษชแด แด‡ แด„ส€แด‡แด…ษชแด› ษชา“ สแดแดœ แด€ส€แด‡ แด˜แดsแด›ษชษดษข แดษด สแดแดœส€ แด„สœแด€ษดษดแด‡สŸ.
๐Ÿ‘จโ€๐Ÿ’ป ๐‚ส€แด‡แด€แด›แด‡แด… ๐ส: @TeleBotCreatorCodes
ยฉ๏ธ ๐‚ส€แด‡แด…ษชแด›: @TeleBotCreatorCodes

ยฉ ๐‚แดแด˜สษชษดษข แด€ษดแด… แด˜แดœส™สŸษชsสœษชษดษข แด„แดแด…แด‡ แด€ษดสแดกสœแด‡ส€แด‡ แดส€ sแด‡สŸสŸษชษดษข แด›สœแด‡ แด€ส™แดแด แด‡ แด„แดแด…แด‡ ษชs sแด›ส€ษชแด„แด›สŸส ษดแดแด› แด€สŸสŸแดแดกแด‡แด…. ๐‘ษชษขสœแด› แดา“ แด›สœแด‡ แด€ส™แดแด แด‡ แด„แดแด…แด‡s ส™แด‡สŸแดษดษข แด›แด แด›สœแด‡ แด„แดแด…แด‡ แดแดกษดแด‡ส€ แด€ษดแด… แดแดกษดแด‡ส€ แดา“ แด›สœแด‡ แด›สœษชs แด„สœแด€ษดษดแด‡สŸ. ๐’แด›ษชสŸสŸ ษชา“ แด€ษดสแดษดแด‡ สœแด€แด แด‡ แด€ษดส แด˜ส€แดส™สŸแด‡แด ส€แด‡ษขแด€ส€แด…ษชษดษข แด„แดแด˜สส€ษชษขสœแด› แด„แด€ษด แด„แดษดแด›แด€แด„แด› แดœs.
๐Ÿ‘11๐Ÿฅฐ2โค1๐ŸŽ‰1
๐Ÿ“„ API Name: Barcode Image Generator

๐Ÿ”— API URL: https://barcode.privates-bots.workers.dev

โœจ Action: Effortlessly Generate Barcode Images in Various Formats

๐Ÿ”ป Request Method: GET (Receive Direct Image Response)

๐Ÿ”ฎ Parameters:
โ”œ text: The text to encode into the barcode (required) 
โ”” format: Desired image format (Default: jpg) 
  โ”œ Available Options: svg, png, jpg, tiff, pdf, gif, webp

๐Ÿ’  Example: https://barcode.privates-bots.workers.dev?text=hello&format=png

ยฉ๏ธ Copy Claims By: @botnations

๐Ÿ”ธ For Customization or Support, Message @botnations
๐Ÿ‘10โค2๐Ÿฅฐ1
๐Ÿ› ๏ธ Admin Panel Setup [Bots Business Code]

This code creates an Admin Panel inside the Bots.Business bot builder where the bot owner can easily enter or change settings like welcome message, minimum amount, and feature toggles โ€” without editing the code.


๐ŸŒ Command: /set_admin_panel
โ›“๏ธ BJS:
var panel = {
  title: "Bot Settings",
  description: "Manage your bot settings here",
  index: 0,
  icon: "settings",
  button_title: "SAVE",

  fields: [
    {
      name: "WELCOME_MSG",
      title: "Welcome Message",
      description: "Message shown to users when they start the bot",
      type: "string"
    },
    {
      name: "MIN_AMOUNT",
      title: "Minimum Amount",
      description: "Minimum allowed for withdrawals",
      type: "number"
    },
    {
      name: "ENABLE_FEATURE",
      title: "Enable Special Feature",
      description: "Turn this on to activate extra options",
      type: "checkbox"
    }
  ]
};

AdminPanel.setPanel({
  panel_name: "MainSettings",
  data: panel
});

---

โœ… Command: /use_admin_values 
๐Ÿงพ BJS:
let msg = "Current Bot Settings:\n\n";

msg += "Welcome: " + AdminPanel.getFieldValue("MainSettings", "WELCOME_MSG") + "\n";
msg += "Min Amount: " + AdminPanel.getFieldValue("MainSettings", "MIN_AMOUNT") + "\n";
msg += "Feature Enabled: " + AdminPanel.getFieldValue("MainSettings", "ENABLE_FEATURE");

Bot.sendMessage(msg);

---

๐Ÿ—‘๏ธ Command: /delete_admin_panel 
๐Ÿงพ BJS:
AdminPanel.removePanel("MainSettings");
Bot.sendMessage("Admin panel deleted successfully.");

---

๐Ÿ‘จโ€๐Ÿ’ป Created By: @Swastik_Raj 
ยฉ Copyright: @BotNations 
๐Ÿ“ข Share freely, and credit if you use or repost!
๐Ÿ‘8โค2๐Ÿ‘Œ2โšก1
@VOTES_RO_BOT maintenance over โœ…
๐Ÿ‘2
Thanks for 4k
๐Ÿ‘7๐Ÿ‘Œ2๐Ÿ”ฅ1
๐Ÿ’ณ Oxapay Deposit Api Bjs Code

๐Ÿ’ฐ Command:- /deposit

Wait for answer :- โœ… On

โค๏ธ ๐€๐ง๐ฌ๐ฐ๐ž๐ซ:- ๐’๐ž๐ง๐ญ ๐€๐ฆ๐จ๐ฎ๐ง๐ญ
  let callbackUrl = Libs.Webhooks.getUrlFor({
command: "/on",
user_id: user.id
})
let call = Libs.Webhooks.getUrlFor({
command: "/on1",
user_id: user.id
})

HTTP.post({
url: "https://api.oxapay.com/merchants/request",
success: "/suc",
body: {
merchant: "Merchant_Key",
amount: message,
currency: "TRX",
lifeTime: 0.5,
feePaidByPayer: 0,
underPaidCover: 2.5,
callbackUrl: callbackUrl,
returnUrl: call,
description: "Sent Trx",
orderId: "98733",
email: "customer@email.com"
},
headers: {
"cache-control": "no-cache",
"Content-type": "application/json",
Accept: "application/json"
}
})

๐Ÿ”Œ Command:- /suc

var json = JSON.parse(content)
var pay = json.payLink
var id = json.trackId

var inkey = [
[{ text: "๐Ÿ’ณ Pay", web_app: { url: pay } }],
[{ text: "๐Ÿšซ Cancel", callback_data: "/cancel" }]
]
var tto =
"<b> You Can Pay Click [๐Ÿ’ณ Pay] \n\nYou Can't Pay Click [๐Ÿšซ Cancel]</>"
Api.sendPhoto({
photo: "https://i.ibb.co/K5XMZRt/file-33.jpg",
caption: tto,
parse_mode: "html",
disable_web_page_preview: true,
reply_markup: { inline_keyboard: inkey }
})


๐Ÿ“ก Command:- /on

var json = JSON.parse(content)
var st = json.status
var am = json.amount
var cur = json.currency
if (st == "Paid") {
var txid = json.txID
var pri = json.price

var net = json.network
Api.sendMessage({
text:
"<b>โœ… Deposit Successfully\n๐Ÿ“Š Status = " +
st +
"\n๐Ÿ’ฐ Amount: " +
am +
" " +
cur +
"(" +
net +
")= " +
pri +
" USDT</>\n\n ๐Ÿ“Ž Transaction ID: </>\n" +
"<a href='https://tronscan.org/#/transaction/" +
txid +
"'>" +
txid +
"</a>",
parse_mode: "html",
disable_web_page_preview: true
})

// var time = Libs.DateTimeFormat.format(new Date(), "dd/m/yyyy h:M:s T") + "M"
//var history = User.getProperty("history")

// var depo = Libs.ResourcesLib.anotherChatRes("deposit", "global")
//var dep = Libs.ResourcesLib.userRes("depo")
var deposit = 400 * am
var de = parseFloat(deposit)
var det = Libs.ResourcesLib.userRes("balance")

det.add(de)
// depo.add(de/ dep.add(de)
Api.sendMessage({
chat_id: "you channel user name",
text:
"๐Ÿ”ฅ New Deposit By " +
"<a href='tg://user?id=" +
user.telegramid +
"'>" +
user.first_name +
"</a> <b>\n\n๐Ÿ’ณ Payment = Crypto\n\n๐Ÿ’ฐ Amount:" +
am +
" " +
cur +
"(" +
net +
")= " +
pri +
" USDT</>\n\n ๐Ÿ“Ž Transaction ID: </>\n" +
"<a href='https://tronscan.org/#/transaction/" +
txid +
"'>" +
txid +
"</a>",
parse_mode: "html",
disable_web_page_preview: true
})
return
}
CODE BY @Yagami_x4light
๐Ÿ‘11โค3
๐ŸŽ™ Oxapay Withdrawal Api Bjs Code

โค Command:- /without

๐Ÿ‘๐Ÿป Wait for Answer: On โœ…

๐Ÿ“– BJS Code :

let callbackUrl = Libs.Webhooks.getUrlFor({
command: "/on",
user_id: user.id
})
var wallet = User.getProperty("wallet")
var am = message
var api_key = "Payout_apikey"
var currency = "DGB"
HTTP.post({
  url: "https://api.oxapay.com/api/send",
  success: "/suc",
  body: {
    key: api_key,
    amount: am,
address: wallet,
    currency: currency,
callbackUrl: callbackUrl
},
  headers: {
'cache-control': 'no-cache',
"Content-type": "application/json",
"Accept": "application/json"
}
})

โค Command:- /suc
๐Ÿ“– BJS Code :
if (content) {
var info = JSON.parse(content)
var st = info.status
if (info.result == 100) {
Api.sendMessage({
text:
"*๐Ÿ” Withdrawal " +
st +
"\n\nโ™ป๏ธ Wait For Confirm You Withdraw\n\n๐Ÿ‘‡See Log In channel โœ…*",
parse_mode: "Markdown",
disable_web_page_previwe: true,
reply_markup: {
inline_keyboard: [
[{ text: "๐Ÿ“„ Channel", url: "https://t.me/Privates_Bots" }]
]
}
})
return
}
} else {
Api.sendMessage({
text: "*โŒ Error 404*",
parse_mode: "Markdown",
disable_web_page_previwe: true,
reply_markup: {
inline_keyboard: [
[{ text: "๐Ÿ“ž Contact Admin", url: "tg://user?id=1789993737" }]
]
}
})
}

โค Command:- /on
๐Ÿ“– BJS Code :
if (content) {
var data = JSON.parse(content)
var st = data.status
var txid = data.txID
var add = data.address
var am = data.amount
if (data.status == "Confirming") {
var key = "You channel Username"
var but = [
[
{
text: "๐Ÿ’ต Earn Now",
url: "https://t.me/" + bot.name + "?start=start"
}
]
]
var tt =
"<b>โœ… New Withdrawal By " +
user.first_name +
"\n\n๐ŸŽŸ๏ธ Txid</> = <a href='https://digiexplorer.info/tx/" +
txid +
"'>" +
txid +
"</a>\n\n<b>โ„น๏ธ Address = " +
add +
"\n\n๐ŸŒ€ Amount = " +
am +
" DGB\n\n๐Ÿ“› Status = " +
st +
"</>"

Api.sendPhoto({
chat_id: key,
photo: "t.me/" + user.username,
caption: tt,
parse_mode: "html",
disable_web_page_previwe: true,
reply_markup: { inline_keyboard: but }

โš ๏ธ Give credit if you are posting on your channel.
๐Ÿ‘จโ€๐Ÿ’ป Created By:
Yแด€ษขแด€แดษช Sแด›ษชสŸสŸ Lแด‡แด€ส€ษดษชษดษข
ยฉ Credit: @botnations
๐Ÿ‘11โค3๐Ÿ”ฅ1
The image editing bot is on the way! ๐Ÿš€๐Ÿ˜„
๐Ÿ‘21โค4๐ŸŽ‰3๐Ÿ”ฅ1
๐Ÿ“ข Admin Tagging Bot Code [Bots.Business]

๐Ÿ’“ Command: *

๐Ÿ” BJS Code:

if (chat.chat_type != "private") {
// Check if the message contains "@admin" anywhere
// This ensures the bot responds if "@admin" is mentioned in the group chat
if (request.text && request.text.toLowerCase().indexOf("@admin") !== -1) {

// If options are not available, fetch the list of group administrators
if (!options) {
Api.getChatAdministrators({
chat_id: request.chat.id,
on_result: "*" // Callback to handle the result of getChatAdministrators
});
} else {
// List of admins obtained from the chat administrators response
let admins = options.result;
let adminList = ""; // Variable to store the formatted list of admins

// Loop through each admin to construct the admin list
for (var ind in admins) {
let admin = admins[ind];
let user = admin.user;

// Skip bot accounts as they are not actual group administrators
if (user.is_bot) continue;

// Add the admin's name as a clickable link to their profile
adminList += `๐Ÿ‘ค <a href="tg://user?id=${user.id}">${user.first_name || "Admin"}</a>\n`;
}

// If there are valid admins, proceed to send the admin list
if (adminList) {
// Send the admin list message to the group chat
Api.sendMessage({
chat_id: request.chat.id,
text: `๐Ÿ‘จโ€๐Ÿ’ป <b>This Group's Admins:</b>\n\n${adminList}`,
parse_mode: "HTML" // Parse the message as HTML for clickable links
});

// Generate a permanent link to the message in the group chat
let messageId = request.message_id;
let chatId = request.chat.id;
let chatLinkId = String(chatId).replace("-100", ""); // Format chat ID for the link
let messageLink = `https://t.me/c/${chatLinkId}/${messageId}`;

// Send the message to each admin in their private chat
for (var ind in admins) {
let admin = admins[ind];
let user = admin.user;

// Skip bot accounts again during private message notification
if (user.is_bot) continue;

// Forward the original message (containing "@admin") to the admin's private chat
Api.forwardMessage({
chat_id: user.id,
from_chat_id: request.chat.id,
message_id: request.message_id
});

// Notify the admin that they were tagged in the group chat
Api.sendMessage({
chat_id: user.id,
text: `๐Ÿ“ข <b>You're tagged in a group chat!</b>\n\n๐Ÿ‘ค <b>User Information:</b>\n
๐Ÿ”น <b>Name:</b> <a href="tg://user?id=${request.from.id}">${request.from.first_name || "Unknown"}</a>\n
๐Ÿ”น <b>Username:</b> @${request.from.username || "Not Set"}\n
๐Ÿ”น <b>User ID:</b> ${request.from.id}`,
parse_mode: "HTML", // Parse the message as HTML for clickable links
reply_markup: {
// Inline keyboard button with a link to the original group message
inline_keyboard: [
[
{
text: "๐Ÿ”— Go to message",
url: messageLink // URL for the admin to directly open the message
}
]
]
}
});
}
} else {
// Notify the group chat if no valid admins were found
Api.sendMessage({
chat_id: request.chat.id,
text: "๐Ÿค” <b>No valid admins found (or only bot admins exist).</b>",
parse_mode: "HTML"
});
}
}
return; // Exit after handling the "@admin" mention
}
}

// Code created by @Privates_Bots
// This code handles tagging admins in group chats when "@admin" is mentioned.
// It notifies all admins with the message details and provides a direct link to the original message.
// ยฉ Created and maintained by @Privates_Bots

๐Ÿ‘จโ€๐Ÿ’ป Created By: @Swastik_Raj 
ยฉ Copyright: @botnations 
๐Ÿ“ข Share and give credit if using on your channel!
๐Ÿ‘9
๐Ÿ“ข Multiple Channel Membership Verification Code [Bots.Business]

๐Ÿ’“ Command: /verify

๐Ÿ” BJS Code:

// Check if the request content is empty
if (!content) {
  // List of channels to verify membership
  var channel = ["@botnations", "@PB_Sponsorship"];

  // HTTP request to verify membership
  HTTP.post({
    url: "https://verify-membership-coding-with-mohits-projects.vercel.app/verify-membership",
    body: {
      botToken: bot.token, // Bot token for verification
      chatIds: channel,    // Chat IDs (channels to check)
      userId: user.telegramid // Telegram user ID
    },
    success: "/verify" // Callback function on success
  });

  return;
}

// Parse the response and check membership status
var status = JSON.parse(content).joinedAllChats;

if (status == true) {
  // User has joined all required channels
  Bot.sendMessage("โœ… Thank you for joining the channels! ๐ŸŽ‰\n\n๐Ÿ”– *Copyright:* @botnations");
  return;
}

// If the user hasn't joined all channels
Bot.sendMessage("โš ๏ธ You must join all required channels to proceed! ๐Ÿšซ\n\n๐Ÿ”– *Copyright:* @botnations");


๐Ÿ‘จโ€๐Ÿ’ป Created By: @Swastik_Raj 
๐ŸŽ– API By:
@Mohit_Kr_Mishra
ยฉ Copyright:
@botnations 

๐Ÿ“ข Feel free to share and give credit if you use this in your channel!
๐Ÿ‘11๐Ÿ”ฅ4