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
Hello everyone,
From now I will be less active , and I might even stop using telegram. Because of this, I won’t be able to reply to any queries.

Thank you for everything! πŸ’–
⚑5πŸ‘4❀1
Abhi 2 din me exam hai isliye todha busy hu isliye dm me reply nhi de pa rha
πŸ‘1
Here’s my exam schedule:

πŸ—“οΈ February: 
β€’ 15: English 
β€’ 20: Science 
β€’ 25: Social Science 
β€’ 28: Hindi 

πŸ—“οΈ March: 
β€’ 10: Maths 
β€’ 18: Computer Application 
πŸ‘25🫑8🀩3❀2πŸ†1
Bot Nations πŸš€
β€’ 15: English
English ka exam mast gya ❀️

Now hope for science πŸ§ͺ
πŸ‘7πŸ‘€6❀2
Thanks for 1K ❀️🫢🏻
πŸ‘8❀5🀩5πŸ”₯4
πŸ”’ 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:
<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

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 like https://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: 
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
Bot Nations πŸš€
25: Social Science 
Exam gone too well
πŸŽ‰11πŸ‘2
πŸ”₯ Enhance Your Bot Messages with Special Effects on Bots.Business! πŸŽ‰

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
πŸ‘3⚑2❀1
Happy Maha Shivratri! πŸ₯³β€οΈπŸ™βœ¨ 
May Lord Shiva bless you with peace, happiness, and prosperity! πŸŒŸπŸ•‰οΈπŸ’– 

Om Namah Shivaya! πŸ™πŸŒŸ 
Celebrate the power of transformation and renewal! 🌿🌺
❀7πŸ‘4πŸŽ‰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:
http://privatesbots.serv00.net/tbc-ai-helper.php
?id={your_telegram_id}question={your_question}

πŸ“₯ Example Success Response:
{
"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:
{
"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! ⬇️
18πŸ‘17❀5πŸ”₯4πŸ‘Œ4πŸ₯°3πŸ’―2🫑2πŸ†’2πŸ†1