๐ API Name:
๐ API URL:
โจ Action: Effortlessly Generate Barcode Images in Various Formats
๐ป Request Method:
๐ฎ Parameters:
โ
โ
โ Available Options: svg, png, jpg, tiff, pdf, gif, webp
๐ Example:
ยฉ๏ธ Copy Claims By: @botnations
๐ธ For Customization or Support, Message @botnations
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
Bot Nations ๐
๐ ๏ธ 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. ๐โฆ
let us know in the comments which code you need !
๐5
๐ณ Oxapay Deposit Api Bjs Code
๐ฐ Command:- /deposit
Wait for answer :- โ On
โค๏ธ ๐๐ง๐ฌ๐ฐ๐๐ซ:- ๐๐๐ง๐ญ ๐๐ฆ๐จ๐ฎ๐ง๐ญ
๐ Command:- /suc
๐ก Command:- /on
๐ฐ 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:-
๐๐ป Wait for Answer: On โ
๐ BJS Code :
โค Command:-
๐ BJS Code :
โค Command:-
๐ BJS Code :
โ ๏ธ Give credit if you are posting on your channel.
๐จโ๐ป Created By: Yแดษขแดแดษช Sแดษชสส Lแดแดสษดษชษดษข
ยฉ Credit: @botnations
โค 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:
๐จโ๐ป Created By: @Swastik_Raj
ยฉ Copyright: @botnations
๐ข Share and give credit if using on your channel!
๐ 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:
๐ BJS Code:
๐จโ๐ป Created By: @Swastik_Raj
๐ API By: @Mohit_Kr_Mishra
ยฉ Copyright: @botnations
๐ 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
Are you interested in an image encoder/decoder bot?
With this tool, you can easily hide text within an image.
With this tool, you can easily hide text within an image.
๐11โค4๐ฅ2
Bot Nations ๐
Are you interested in an image encoder/decoder bot? With this tool, you can easily hide text within an image.
Check out the Demo!
๐6โค3๐1
Bot Nations ๐
Are you interested in an image encoder/decoder bot? With this tool, you can easily hide text within an image.
๐ฌ Encode Decode Hidden Messages in Images [Telebot Creator Code]
โโโโโโโโโโโโโโโโ
โ๐ป Command:
โข๏ธ TPY:
โโโโโโโโโโโโโโโโ
โ๐ป Command:
โข๏ธ TPY:
โโโโโโโโโโโโโโโโ
โ๐ป Command:
โข๏ธ TPY:
โโโโโโโโโโโโโโโโ
โ๐ป Command:
โข๏ธ TPY:
โโโโโโโโโโโโโโโโ
โ๐ป Command:
โข๏ธ TPY:
โโโโโโโโโโโโโโโโ
๐จโ๐ป Created By: @Swastik_Raj
ยฉ Copyright: @botnations
โโโโโโโโโโโโโโโโ
โ๐ป Command:
/encodeโข๏ธ TPY:
bot.sendMessage("Please send the image you want to encode your message into.")
Bot.handleNextCommand("/get_encode_image")โโโโโโโโโโโโโโโโ
โ๐ป Command:
/get_encode_imageโข๏ธ TPY:
if not message.photo:
bot.sendMessage("Please send a valid image.")
Bot.handleNextCommand("get_encode_image")
else:
image_id = message.photo[-1].file_id
User.saveData("pending_encode_image", image_id)
bot.sendMessage("Great! Now send the hidden text message.")
Bot.handleNextCommand("/get_hidden_text")
โโโโโโโโโโโโโโโโ
โ๐ป Command:
/get_hidden_textโข๏ธ TPY:
image_id = User.getData("pending_encode_image")
if not image_id:
bot.sendMessage("No image found. Please start again with /encode.")
else:
Bot.saveData(f"hidden_text:{image_id}", msg)
bot.sendMessage("Your message has been successfully saved for this image!")โโโโโโโโโโโโโโโโ
โ๐ป Command:
/decodeโข๏ธ TPY:
bot.sendMessage("Please send the image to decode its hidden message.")
Bot.handleNextCommand("/get_decode_image")โโโโโโโโโโโโโโโโ
โ๐ป Command:
/get_decode_imageโข๏ธ TPY:
if not message.photo:
bot.sendMessage("Please send a valid image.")
Bot.handleNextCommand("get_decode_image")
else:
image_id = message.photo[-1].file_id
hidden_text = Bot.getData(f"hidden_text:{image_id}")
if hidden_text:
bot.sendMessage(f"Hidden message:\n\n{hidden_text}")
else:
bot.sendMessage("No hidden message found for this image.")
โโโโโโโโโโโโโโโโ
๐จโ๐ป Created By: @Swastik_Raj
ยฉ Copyright: @botnations
๐ข Share and give credit if using on your channel!
๐6โค5๐2
Bot Nations ๐
Comment some other bot ideas!
Iโll definitely work on bringing your bot idea to life!
๐คฉ3
This media is not supported in your browser
VIEW IN TELEGRAM
โBHHAARRAAT MMMAAATTTAA KIIIII JAAAYYYY ๐ฎ๐ณ๐ซกโ
๐ฅ34โค6๐3๐ซก2๐1๐ณ1๐ฏ1
๐ฎ๐ณโจ Vote if you stand with India!
anonymous poll
๐โโ๏ธ I stand! โ 179
๐๐๐๐๐๐๐ 78%
๐ซ I'm not! โ 50
๐๐ 22%
๐ฅ 229 people voted so far.
anonymous poll
๐โโ๏ธ I stand! โ 179
๐๐๐๐๐๐๐ 78%
๐ซ I'm not! โ 50
๐๐ 22%
๐ฅ 229 people voted so far.
๐33โค8๐ฅฐ4๐ฅ2๐2๐1
Bot Nations ๐ via @vote
๐ฎ๐ณโจ Vote if you stand with India! anonymous poll ๐โโ๏ธ I stand! โ 179 ๐๐๐๐๐๐๐ 78% ๐ซ I'm not! โ 50 ๐๐ 22% ๐ฅ 229 people voted so far.
Those who do not stand with us(India ๐ฎ๐ณ) are free to leave our communities.
โค25๐16๐ฅ15๐15๐ฏ8๐คฉ1๐1
๐ฆ Clone Bot To Other's Account (It Will Run By Default;No Need Run It Manually. [Telebot Codes]
๐ Command:
๐ TPY:
๐ Command:
๐ TPY:
โก Mแดแดแดแด Bส: @Flash_Ninja
๐ฐ Publisher: @Swastik_Raj
โ Pสs Gษชแด แด Us Cสแดแด ษชแด Tแด Sแดษดแด Oแดส Cแดแด แด Iษด Cสแดษดษดแดส...
๐ Command:
Your Command๐ TPY:
bot.sendMessage(text="Sแดษดแด Bแดแด Tแดแดแดษด Tแด Cสแดษดแด Aษด Bแดแด")
Bot.handleNextCommand("/clone")
๐ Command:
/clone๐ TPY:
try:
Bot Transfer(email="swastikraj12567@gmail com", bot_id="83628", bot_token=message text, run_now=True)
# Email: You need to put your email where you want your all clients' bot adds
# bot_id: Put your bot ID to copy a bot Don't share bot ID with others
bot sendMessage("Bot Started Successfully")
except Exception as e:
bot sendMessage("An error occurred: " + str(e))
โก Mแดแดแดแด Bส: @Flash_Ninja
๐ฐ Publisher: @Swastik_Raj
โ Pสs Gษชแด แด Us Cสแดแด ษชแด Tแด Sแดษดแด Oแดส Cแดแด แด Iษด Cสแดษดษดแดส...
๐9๐4โคโ๐ฅ1
๐ฉ Boost Channel Task Code
๐ก Command :-
๐ก Command :-
๐ฃ๏ธ Code by: @Coder_Kevin
๐ Posted by: @KevinBots
๐ก Command :-
โก Boost (optional)username = 'kevinbots' # enter your channel username without @
button = InlineKeyboardMarkup()
button.add(InlineKeyboardButton(text='โก Boost',url=f'https://t.me/boost/{username}'))
if message.chat.type != 'private':
raise ReturnCommand
User.saveData('boost', False)
bot.sendMessage(chat_id=u,text='โก <b>Boost this channel to help it unlock additional features.\n\n๐ฐ Reward:</b> <i>$0.5</i>',parse_mode='html',reply_markup=button)
๐ก Command :-
/handler_chat_boost (required)channel = 'kevinbots' # enter your channel username without @
if message and message['chat']['username'].lower() == channel.lower():
userid = message['boost']['source']['user']['id']
balance = libs.Resources.anotherRes('balance',user=userid)
boost = User.getData('boost',user=userid)
if boost == None:
raise ReturnCommand
if boost == False:
if User.getData('boosted',user=userid) != True:
User.saveData('boosted',data=True,user=userid)
User.saveData('boost',data=True,user=userid)
balance.add(0.5)
bot.sendMessage(chat_id=userid,text='๐ฐ <b>Congratulations, $0.5 Added To Your Balance.</b>',parse_mode='html')
else:
bot.sendMessage(chat_id=userid,text='๐ <b>You have already helped boost our channel.</b>',parse_mode='html')
๐ฃ๏ธ Code by: @Coder_Kevin
๐ Posted by: @KevinBots
โค10๐7