Bot Nations ๐
โข 15: English
English ka exam mast gya โค๏ธ
Now hope for science ๐งช
Now hope for science ๐งช
๐7๐6โค2
๐ข Number to Words Conversion Bot (BJS)
Convert any number into words with this simple BJS function!
// Function to convert numbers to words
function numberToWords(num) {
var ones = ["", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"];
var teens = ["", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen"];
var tens = ["", "Ten", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"];
var thousands = ["", "Thousand", "Million", "Billion"];
function convertLessThanThousand(n) {
var str = "";
if (n >= 100) {
str += ones[Math.floor(n / 100)] + " Hundred ";
n %= 100;
}
if (n >= 11 && n <= 19) {
str += teens[n - 10] + " ";
} else {
str += tens[Math.floor(n / 10)] + " " + ones[n % 10] + " ";
}
return str.trim();
}
if (num === 0) return "Zero";
var word = "";
var unit = 0;
while (num > 0) {
if (num % 1000 !== 0) {
word = convertLessThanThousand(num % 1000) + " " + thousands[unit] + " " + word;
}
num = Math.floor(num / 1000);
unit++;
}
return word.trim();
}
// ๐ฅ Get user input
var num = parseInt(message);
// ๐ Convert number to words
if (isNaN(num) || num < 0) {
Bot.sendMessage("โ Please enter a valid positive number!");
} else {
var words = numberToWords(num);
Bot.sendMessage("๐ข *Number:* " + num + "\n๐ *In Words:* " + words + "");
}
โ๏ธ Usage Example:
Send a number, and the bot will return its word form!
โข Example Input:12345
โข Output:Twelve Thousand Three Hundred Forty-Five
๐จโ๐ป Created By: @Swastik_Raj
ยฉ Copyright: @BotNations
๐9โค5๐3๐คฉ2
๐ฆ All HTML Tags Working On Telegram.
โก๏ธ Bold Text:
โก๏ธ Italics Text:
โก๏ธ Mono/Tap To Copy Text:
โก๏ธ Spoiler Text:
โก๏ธ StrikeThrough Text:
โก๏ธ UnderLine Text:
โก๏ธ Quote Text:
โก๏ธ Expendable Quote Text:
โก๏ธ Send Copy Code Text:
โก๏ธ Bold Text:
<b>Your Text Here.</b>
โก๏ธ Italics Text:
<i>Your Text Here.</i>
โก๏ธ Mono/Tap To Copy Text:
<code>Your Text Here.</code>
โก๏ธ Spoiler Text:
<tg-spoiler>Your Text Here.</tg-spoiler>
โก๏ธ StrikeThrough Text:
<s>Your Text Here.</s>
โก๏ธ UnderLine Text:
<u>Your Text Here.</u>
โก๏ธ Quote Text:
<blockquote>Your Text Here.</blockquote>
โก๏ธ Expendable Quote Text:
<blockquote expandable>Your Text Here.</blockquote>
โก๏ธ Send Copy Code Text:
<pre><code class="language-javascript">Bot.sendMessage("hello")
Bot.sendMessage("hello")
Bot.sendMessage("hello")
Bot.sendMessage("hello")</code></pre>๐จโ๐ป Credit By:- @Algoraushan
โค14๐10๐ฅฐ3๐คฉ3
๐ Free Image Processing API Source Code
โ๏ธ API Format:
๐ Example API Request:
๐จโ๐ป Created By: @Swastik_Raj
ยฉ Copyright: @BotNations
๐ข Feel free to share and give credit if you use this in your channel!
export default {
async fetch(request) {
const url = new URL(request.url);
const imageUrl = url.searchParams.get("url");
const tool = url.searchParams.get("tool");
if (!imageUrl || !tool) {
return new Response("Missing required parameters: url and tool", { status: 400 });
}
const apiEndpoints = {
removebg: "https://api.remove.bg/v1.0/removebg",
enhance: "https://api.deepai.org/api/torch-srgan",
upscale: "https://api.deepai.org/api/waifu2x",
restore: "https://api.deepai.org/api/image-editor",
colorize: "https://api.deepai.org/api/colorizer"
};
const apiKey = {
removebg: "YOUR_REMOVEBG_API_KEY",
deepai: "YOUR_DEEPAI_API_KEY"
};
if (!apiEndpoints[tool]) {
return new Response("Invalid tool specified", { status: 400 });
}
try {
let apiUrl = apiEndpoints[tool];
let headers = {};
let body = {};
if (tool === "removebg") {
headers["X-Api-Key"] = apiKey.removebg;
body = new URLSearchParams({ image_url: imageUrl });
} else {
headers["api-key"] = apiKey.deepai;
body = new URLSearchParams({ image: imageUrl });
}
const apiResponse = await fetch(apiUrl, {
method: "POST",
headers: headers,
body: body
});
if (!apiResponse.ok) {
throw new Error("Failed to process image");
}
const jsonResponse = await apiResponse.json();
const resultUrl = jsonResponse.output_url || jsonResponse.data?.output_url;
if (!resultUrl) {
throw new Error("No output received");
}
const finalImageResponse = await fetch(resultUrl);
return new Response(finalImageResponse.body, {
headers: { "Content-Type": finalImageResponse.headers.get("Content-Type") }
});
} catch (error) {
return new Response(`Error processing request: ${error.message}`, { status: 500 });
}
}
};โ๏ธ API Format:
https://your-worker-subdomain.worker.dev/?url=<IMAGE_URL>&tool=<TOOL_NAME>๐ Example API Request:
https://your-worker-subdomain.worker.dev/?url=https://example.com/image.jpg&tool=removebg๐จโ๐ป Created By: @Swastik_Raj
ยฉ Copyright: @BotNations
๐ข Feel free to share and give credit if you use this in your channel!
๐9โค1๐ฅ1
โค๏ธโ๐ฅ All Necessary Info:
โHow to Host on Workers.dev Get API Keys
โHosting on Cloudflare Workers (workers.dev)
1๏ธโฃ Sign Up for Cloudflare
Go to https://workers.cloudflare.com/ and sign up if you donโt have an account.
Once signed in, navigate to the Workers Pages section.
2๏ธโฃ Create a New Worker
Click on "Create Application" โ Select "Worker".
In the Worker editor, replace the default code with your script.
3๏ธโฃ Deploy Your Worker
Click "Save and Deploy" to make it live.
Youโll receive a unique URL likehttps://your-worker-subdomain.worker.dev/that you can use for API requests.
4๏ธโฃ Custom Domain (Optional)
You can map your Worker to a custom domain via Cloudflareโs DNS Settings.
---
โHow to Get API Keys for Image Processing
โ Remove.bg API Key
Sign up at https://www.remove.bg/api and generate an API key from your account.
โ DeepAI API Key (For Upscale, Enhance, Restore, Colorize)
Sign up at https://deepai.org/ and navigate to the API section to get your key.
๐ก Where to Add the Keys?
Replace "YOURREMOVEBGAPIKEY" and "YOURDEEPAIAPIKEY" in the script with your actual keys.
---
โAvailable Modes (tool parameter values)
1๏ธโฃ removebg โ Removes background from images using Remove.bg API.
2๏ธโฃ enhance โ Enhances image quality using DeepAIโs torch-srgan.
3๏ธโฃ upscale โ Upscales images using DeepAIโs waifu2x.
4๏ธโฃ restore โ Restores images using DeepAIโs image-editor.
5๏ธโฃ colorize โ Converts black white images to color using DeepAIโs colorizer.
๐ก Example Usage:https://your-worker-subdomain.worker.dev/?url=https://example.com/image.jpg&tool=upscale
๐10๐ฅ4โค2
๐ Introducing the BotMaker CAPTCHA API!
Looking for a straightforward yet powerful solution to generate CAPTCHA images? Look no further! Our BotMaker CAPTCHA API is designed to help you effortlessly prevent spam and streamline user verification.
๐ Get Started Today:
Sample API Request:
Example API Request:
๐ฅ Example Success Response:
๐ก How It Works:
Simply pass your desired text as a query parameter, and our API will generate a CAPTCHA image in an instant!
โจ Key Features:
โ User-Friendly โ Enjoy a hassle-free, URL-based API request.
โ Customizable Text โ Create CAPTCHAs with any alphanumeric string of your choice.
โ Robust Anti-Spam Protection โ Strengthen the security of your applications effectively.
โ Fast Reliable โ Experience quick response times for seamless integration into your systems.
๐ Ideal Use Cases:
๐น Secure User Logins Signups
๐น Protect Form Submissions
๐น Prevent Bots in Online Services
๐น Enhance Authentication Security Measures
Donโt wait! Start using the BotMaker CAPTCHA API today and safeguard your platform from bots while automating security with ease!
๐ฐ Creator: @botnations
ยฉCopyright: @botnations
Looking for a straightforward yet powerful solution to generate CAPTCHA images? Look no further! Our BotMaker CAPTCHA API is designed to help you effortlessly prevent spam and streamline user verification.
๐ Get Started Today:
Sample API Request:
https://botmaker.serv00.net/captcha.php?text={your_text}Example API Request:
https://botmaker.serv00.net/captcha.php?text=77877๐ฅ Example Success Response:
{
"captcha_text": "77877",
"captcha_url": "https://botmaker.serv00.net/captchas/1740379201_f3d5d0b2.png",
"credit": "t.me/botnations"
}๐ก How It Works:
Simply pass your desired text as a query parameter, and our API will generate a CAPTCHA image in an instant!
โจ Key Features:
โ User-Friendly โ Enjoy a hassle-free, URL-based API request.
โ Customizable Text โ Create CAPTCHAs with any alphanumeric string of your choice.
โ Robust Anti-Spam Protection โ Strengthen the security of your applications effectively.
โ Fast Reliable โ Experience quick response times for seamless integration into your systems.
๐ Ideal Use Cases:
๐น Secure User Logins Signups
๐น Protect Form Submissions
๐น Prevent Bots in Online Services
๐น Enhance Authentication Security Measures
Donโt wait! Start using the BotMaker CAPTCHA API today and safeguard your platform from bots while automating security with ease!
๐ฐ Creator: @botnations
ยฉCopyright: @botnations
๐4โค1
๐ฅ Enhance Your Bot Messages with Special Effects on Bots.Business! ๐
โAvailable Effects:
โข ๐ฅ Fire Effect โ
โข ๐ Thumbs Up Effect โ
โข ๐ Thumbs Down Effect โ
โข โค๏ธ Heart Effect โ
โข ๐ Celebration Effect โ
โข ๐ฉ Poop Effect โ
โExample Code:
โHow to Use:
1. Choose an emoji effect from the list above.
2. Include the corresponding messageeffectid in your
3. Customize the text to fit your message, and send!
โ ๏ธ Give credit if you are posting on your channel.
๐จโ๐ป Created By: Swastik
ยฉ Credit: @Privates_Bots
Did you know that you can experiment with different message effects using specific message_effect_id codes on Bots Business? Although not officially documented, some developers have found that adding an effect ID alongside an emoji can add a bit of flair to your bot messages! Check out the examples below:
โAvailable Effects:
โข ๐ฅ Fire Effect โ
message_effect_id: "5104841245755180586"โข ๐ Thumbs Up Effect โ
message_effect_id: "5107584321108051014"โข ๐ Thumbs Down Effect โ
message_effect_id: "5104858069142078462"โข โค๏ธ Heart Effect โ
message_effect_id: "5044134455711629726"โข ๐ Celebration Effect โ
message_effect_id: "5046509860389126442"โข ๐ฉ Poop Effect โ
message_effect_id: "5046589136895476101"โExample Code:
let effects = [
{ emoji: "๐ฅ", text: "Fire effect message", id: "5104841245755180586" },
{ emoji: "๐", text: "Thumbs up effect message", id: "5107584321108051014" },
{ emoji: "๐", text: "Thumbs down effect message", id: "5104858069142078462" },
{ emoji: "โค๏ธ", text: "Heart effect message", id: "5044134455711629726" },
{ emoji: "๐", text: "Celebration effect message", id: "5046509860389126442" },
{ emoji: "๐ฉ", text: "Poop effect message", id: "5046589136895476101" }
];
effects.forEach(effect => {
Api.sendMessage({
chat_id: user.telegramid,
text: `${effect.emoji} ${effect.text}`,
parse_mode: "Markdown",
message_effect_id: effect.id
});
});
โHow to Use:
1. Choose an emoji effect from the list above.
2. Include the corresponding messageeffectid in your
Api.sendMessage code.3. Customize the text to fit your message, and send!
Try it out and let us know if it adds some extra style to your botโs messages! ๐
โ ๏ธ Give credit if you are posting on your channel.
๐จโ๐ป Created By: Swastik
ยฉ Credit: @Privates_Bots
๐8๐คฉ3๐ฅ1
๐ Experience Effortless Automated Messaging Website!
๐ https://file-sharing-roan.vercel.app/?id=67be08b615d2c
๐ https://file-sharing-roan.vercel.app/?id=67be08b615d2c
๐3โก2โค1
๐ Introducing the TBC AI Helper API! ๐
Are you looking for a quick and effective way to get assistance with your TBC (Telebot Creator) bot development? Look no further! Our new API provides expert guidance and code snippets to help you create and manage your bots effortlessly.
๐ Sample API Request:
๐ Example:
๐ก How It Works:
Simply replace
๐ฐ Creator: @Privates_Bots
ยฉCopyright: @Privates_Bots
Are you looking for a quick and effective way to get assistance with your TBC (Telebot Creator) bot development? Look no further! Our new API provides expert guidance and code snippets to help you create and manage your bots effortlessly.
๐ Sample API Request:
๐ฅ Example Success Response:http://privatesbots.serv00.net/tbc-ai-helper.php
?id={your_telegram_id}question={your_question}
{
"message": "Hello! How can I assist you today? If you have any questions or need help with something specific, feel free to ask!",
"credit": "https://t.me/Privates_Bots"
}๐ Example:
http://privatesbots.serv00.net/tbc-ai-helper.php?id=1789993737&question=hey๐ก How It Works:
Simply replace
{your_telegram_id} and {your_question} in the API request with your Telegram ID and your specific query. Our service will provide tailored responses to help you with your TBC bot development!๐ฐ Creator: @Privates_Bots
ยฉCopyright: @Privates_Bots
๐5๐2
<?php
// Send typing action
$bot->sendChatAction($message->chat->id, 'typing');
// Get the user ID and question from the message
$userid = trim($message->text);
$question = "your_question_here"; // Replace this with the actual question or fetch dynamically if needed
// Define the new API URL
$url = "http://privatesbots.serv00.net/tbc-ai-helper.php?id={$userid}&question={$question}";
// Fetch the data from the new API
$client = new GuzzleHttpClient();
$response = $client->get($url);
$data = json_decode($response->getBody(), true); // Parse the response as JSON
// Format the fetched details
$details = "
<b>๐ค AI Helper Response:</b>
<blockquote><b>๐ Question:</b> {$question}
<b>๐ก Answer:</b> " . ($data['message'] ?? 'No response') . "
</blockquote>
";
// Send the formatted details back to the user
$bot->sendMessage(
$message->chat->id,
$details,
[
'parse_mode' => 'HTML',
'reply_to_message_id' => $message->message_id
]
);
โก2๐2
๐ง Note: This bot is currently in development. If you encounter any error, please comment below or DM @swastik_raj.
๐5๐3๐ฅฐ1
๐ API Name: Mistral AI Chatbot
๐ API URL: https://mistral-ai-three.vercel.app
โจ Action: Engage in AI-powered conversations with memory for each user
๐ก Request Method: GET & POST (Receive JSON Response)
๐ Parameters:
๐น question โ User's query (Required)
๐น id โ Your Telegram ID (Required, maintains chat history)
๐ GET Example:
https://mistral-ai-three.vercel.app/?id=123456789&question=Hello
๐ POST Example:
๐ค Response Example:
ยฉ Copy Claims By: @botnations
๐ฉ For Customization or Support, Message @private_bots_chats/@swastik_raj
๐ API URL: https://mistral-ai-three.vercel.app
โจ Action: Engage in AI-powered conversations with memory for each user
๐ก Request Method: GET & POST (Receive JSON Response)
๐ Parameters:
๐น question โ User's query (Required)
๐น id โ Your Telegram ID (Required, maintains chat history)
๐ GET Example:
https://mistral-ai-three.vercel.app/?id=123456789&question=Hello
๐ POST Example:
{
"id": "123456789",
"question": "Who is Albert Einstein?"
} ๐ค Response Example:
{
"status": "success",
"user_id": "123456789",
"question": "Who is Albert Einstein?",
"answer": "Albert Einstein was a theoretical physicist best known for developing the theory of relativity."
} ยฉ Copy Claims By: @botnations
๐ฉ For Customization or Support, Message @private_bots_chats/@swastik_raj
๐3๐1๐1
๐ง Mistral AI Chatbot [Bots Business Code]
๐ Command:
/ask ๐ผ Answer:
Send me your question to chat with AI.โณ Wait for Answer:
Onโ
๐ BJS:
let apiUrl = "https://mistral-ai-three.vercel.app";
// Define the request payload
let data = {
id: user.telegramid, // Using user's Telegram ID for history
question: encodeURI(message)
};
// Send a POST request
HTTP.post({
url: apiUrl,
body: data,
success: "/onMistralResponse"
});
๐ Command:
/onMistralResponse ๐ BJS:
let json = JSON.parse(content);
if (json.status === "success") {
Bot.sendMessage("๐ค Mistral AI: " + json.answer);
}
๐จโ๐ป Created By: @Swastik_Raj
ยฉ Copyright: @BotNations
๐ข Feel free to share and give credit if you use this in your channel!
๐4โค3โคโ๐ฅ1๐1
๐ค Want the TBC AI Helper Prompt? Just send it to any AI model (like ChatGPT), and it will start working like TBC AI Helper! ๐ Interested?
Drop a comment below! โฌ๏ธ
Drop a comment below! โฌ๏ธ
18๐17โค5๐ฅ4๐4๐ฅฐ3๐ฏ2๐ซก2๐2๐1
Do you want a human-like AI chatbot API and BJS?
anonymous poll
Yes โ 235
๐๐๐๐๐๐๐ 87%
No โ 34
๐ 13%
๐ฅ 269 people voted so far.
anonymous poll
Yes โ 235
๐๐๐๐๐๐๐ 87%
No โ 34
๐ 13%
๐ฅ 269 people voted so far.
๐24๐ฅฐ6๐ซก2๐1