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
🇮🇳 Celebrating the Spirit of Unity and Freedom! 🎉

On this Republic Day, let us come together to honor the values that our great nation stands for: justice, liberty, equality, and fraternity. As we reflect on the sacrifices made by our freedom fighters, let us renew our commitment to building a brighter future for all.

May the tricolor always fly high, symbolizing our unity in diversity. Together, let's strive to uphold the ideals enshrined in our Constitution and work towards a prosperous and inclusive India.

Jai Hind! 🇮🇳✨
👍8❤4🥰2
🖼️ Image To Text Retrieval API Source Code [Python]

from fastapi import FastAPI
import requests

app = FastAPI()

OCR_API_KEY = 'YOUR_OCR_SPACE_API_KEY'  # Replace with your actual OCR.space API key

@app.get("/")
async def root():
    return {"message": "Welcome to the Image-to-Text API. Use '?q=your_image_url' to extract text."}

@app.get("/extract-text/")
async def extract_text(q: str):
    try:
        # Prepare the request to OCR.space API
        ocr_url = "https://api.ocr.space/parse/image"
        params = {
            'url': q,
            'apikey': OCR_API_KEY,
            'language': 'eng'
        }
       
        # Make the request to OCR.space API
        response = requests.get(ocr_url, params=params)
        response.raise_for_status()
        result = response.json()

        # Check if OCR was successful
        if result['IsErroredOnProcessing']:
            return {"error": result['ErrorMessage']}
       
        extracted_text = result['ParsedResults'][0]['ParsedText']
       
        return {"text": extracted_text}
    except Exception as e:
        return {"error": str(e)}

❔Get API Key: https://ocr.space/ocrapi

⛓‍💥 URL Format:
https://your-domain.vercel.app/extract-text?q=https://iili.io/2LXHQR9.md.jpg

👨‍💻 Created By: @Swastik_Raj   
© Copyright:
@BotNations
📢 Feel free to share and give credit if you use this in your channel!
👍8❤6🎉1
🌟 Free Website Screenshot API 🌟


✅ How to Use the API:

Usage (GET Method): 

https://perferct-circle.serv00.net/ss.php?q=https://example.com

✅ Example: 
To get a screenshot of Google, use this link: 
https://perferct-circle.serv00.net/ss.php?q=https://google.com


🔹 How It Works: 
Simply change https://google.com to any website you want to capture, and you'll receive an instant screenshot!

⚡ The API fetches the image for you and sends it back directly!

👨‍💻 Created By: @Swastik_Raj   
© Copyright:
@BotNations
📢 Feel free to share and give credit if you use this in your channel!
👍7❤3🔥2
📢 Custom Keyboard with Multiple Button Actions 
Code Source: [Bots.Business]

💓 Command to Use: /custom_keyboard

🔍 BJS:
// Welcome message for the user
var welcomeText = "Welcome, " + user.first_name + "!";

// Define an interactive keyboard layout
var keyboard = [
    [
        {
            // Button for selecting users
            text: "Select User",
            request_user: {
                request_id: 1, // Unique identifier for the request
                userisbot: false, // Exclude bots
                userispremium: true // Only premium users
            }
        },
        {
            // Button for selecting bots
            text: "Select Bot",
            request_user: {
                request_id: 2, // Unique identifier for the request
                userisbot: true // Only bots
            }
        }
    ],
    [
        {
            // Button for selecting groups
            text: "Select Group",
            request_chat: {
                request_id: 3, // Unique identifier for the request
                chatischannel: false, // Exclude channels
                chatisforum: false // Exclude forums
            }
        },
        {
            // Button for selecting channels
            text: "Select Channel",
            request_chat: {
                request_id: 4, // Unique identifier for the request
                chatischannel: true // Only channels
            }
        }
    ],
    [
        {
            // Button for sharing contact information
            text: "Share Contact",
            request_contact: true
        },
        {
            // Button for sharing location
            text: "Share Location",
            request_location: true
        }
    ],
    [
        {
            // Button for creating a poll
            text: "Create Poll",
            request_poll: {
                type: "regular" // Regular (multiple-choice) poll
            }
        },
        {
            // Button for launching a web app
            text: "Open Web App",
            web_app: {
                url: "https://your-web-app-url.com" // Link to the web app
            }
        }
    ]
];

// Send a message to the user with the interactive keyboard
Api.sendMessage({
    chat_id: user.telegramid, // Target chat ID
    text: welcomeText, // Welcome message text
    reply_markup: {
        keyboard: keyboard, // Attach defined keyboard layout
        resize_keyboard: true, // Adjust keyboard size for optimal display
        onetimekeyboard: true // Hide keyboard after first use
    }
});

// 🔖 Copyright: @privates_bots

👨‍💻 Created By: @Swastik_Raj   
© Copyright: @botnations

📢 Feel free to share and give credit if you use this in your channel!
👍8⚡2❤1
🌟 Free Website Screenshot API Source Code


<?php

// Get the website URL from the query parameter
$websiteUrl = $_GET['q'] ?? '';

if (empty($websiteUrl)) {
die("No website URL provided.");
}

// ScreenshotMachine API URL
$screenshotUrl = "https://api.screenshotmachine.com/?key=af475f&dimension=1024x768&url=" . urlencode($websiteUrl);

// Fetch the screenshot
$imageData = file_get_contents($screenshotUrl);
if (!$imageData) {
die("Failed to fetch screenshot.");
}

// Set image content type and output the image directly
header("Content-Type: image/jpeg");
echo $imageData;
?>

⛓‍💥 API Format: https://perferct-circle.serv00.net/ss.php?q=https://google.com


👨‍💻 Created By: @Swastik_Raj   
© Copyright:
@BotNations
📢 Feel free to share and give credit if you use this in your channel!
❤3👍2
🤖 DeepSeek AI Bot

⚡ This bot is here to help you with any query – big or small. Just type your question, and DeepSeek AI will provide a response in a flash!

❔What Can DeepSeek AI Do?
🔍 Get answers to all your questions
🧠 Assist with complex topics or general info

Start chatting now: @SeekDeepAI_bot
🔥3👍1
Bot Nations 🚀
🌟 Free Website Screenshot API 🌟 ✅ How to Use the API: Usage (GET Method):  https://perferct-circle.serv00.net/ss.php?q=https://example.com ✅ Example:  To get a screenshot of Google, use this link:  https://perferct-circle.serv00.net/ss.php?q=https://google.com…
site = params
photo_url=f"https://perferct-circle.serv00.net/ss.php?q={site}"
bot.sendPhoto(chat_id=u, photo=photo_url, caption="<b>Screenshot of website</b>")

# Send like /screenshot {website url}
👍5
🚀 Introducing the DeepSeek AI API!

Are you in search of cutting-edge, AI-driven assistance? Look no further! Our DeepSeek AI API is designed to deliver intelligent, context-aware responses tailored to your inquiries.

🔗 Try It Out: 

- Sample API Request:
https://deepseek.privates-bots.workers.dev/?question={your_question}

 
- Example API Request:
https://deepseek.privates-bots.workers.dev/?question=hy

📥 Example Success Response:

{
  "status": "success",
  "message": "Hello! It appears you might be referencing "hy" or something related. Could you please provide more context or clarify your question? I’m here to help! 😊",
  "credit": "t.me/botnations"
}


💡 How It Works: 
Simply submit your question as a query parameter, and the DeepSeek AI will generate insightful and relevant responses based on the context of your input!

✨ Features:

• Intelligent Responses: Leverage the advanced capabilities of the DeepSeek AI engine.
• Context-Aware Assistance: Get tailored support for a wide array of questions.
• Seamless Integration: Effortlessly incorporate into your applications for enhanced user experiences.

📈 Use Cases:

• AI-Powered Chatbots 
• Customer Support  FAQ Automation 
• Smart Virtual Assistants 
• And so much more!

Don’t miss out on the opportunity to elevate your platform with intelligent AI conversations. Get started today! For further details or inquiries, feel free to reach out.

🔰 Creator: @botnations 
©Copyright: @botnations
👍4❤1🥰1
✨ Happy Vasant Panchami! ✨

May Goddess Saraswati bless you with wisdom, knowledge, and success. 🌼📖💛
Let the vibrant hues of yellow bring joy and prosperity to your life. 🌿🎶


Wishing you a bright and blessed Vasant Panchami! 🌞🙏

या कुन्देन्दुतुषारहारधवला या शुभ्रवस्त्रावृता
या वीणावरदण्डमण्डितकरा या श्वेतपद्मासना।
या ब्रह्माच्युतशंकरप्रभृतिभिर्देवैः सदा वन्दिता
सा मां पातु सरस्वती भगवती निःशेषजाड्यापहा॥
👍7❤4👏2
Need DeepSeek website source code (in HTML, CSS, JS, and PHP)?
👍8🔥6👏3🥰2❤1🙏1
🎉 DeepSeek Website Source Code (ZIP) – Free for You!

Hey everyone! I’m sharing the DeepSeek website source code in a ZIP file. If you want to check it out or use it, grab it now!

📥 Download here: https://t.me/MultipleFileShareBot?start=67fdb25740747
👍9❤1
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