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
T2I.php
36.5 KB
๐Ÿ“Œ Here's the source code of a text-to-image unlimited generation website! ๐Ÿ–ผ๏ธโœจ 


๐Ÿ”— Demo: Click here ๐Ÿ”ฅ 
โšก Most of the APIs provided by @kaiiddo ๐Ÿ’ก 
12๐Ÿ‘15โค8๐Ÿ”ฅ4๐Ÿฅฐ1๐Ÿ†’1
๐Ÿ’ฌ Adorable Random Neko Image Bot ๐Ÿฑโœจ 
[Bots Business Code]

โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

๐ŸŒธ Command: /neko 

๐Ÿ“ BJS:

HTTP.get({
  url: "https://nekos.life/api/v2/img/neko",
  success: "/onNekoSuccess",
  error: "/onNekoError"
});


โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

๐Ÿ“ฅ Command: /onNekoSuccess 

๐Ÿ“ BJS:

let data = JSON.parse(content);
let imageUrl = data.url;

Api.sendPhoto({
  photo: imageUrl,
  caption: "๐Ÿ˜ธ Here's a delightful neko image just for you!"
});


โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

โš ๏ธ Command: /onNekoError 

๐Ÿ“ BJS:

Bot.sendMessage("โŒ Failed to fetch neko image. Please try again later!");


โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

๐Ÿ‘จโ€๐Ÿ’ป Created By: @Swastik_Raj 
ยฉ Copyright: @botnations 
๐Ÿ“ข Love anime? Share this with your friends and remember to give credit if you use it on your channel!
โค12๐Ÿ‘3๐Ÿ”ฅ1
๐Ÿš€ Looking to boost your channel subscribers? ๐Ÿš€

Get ready to welcome over 100 genuine users daily! ๐ŸŒŸ

Hurry, thereโ€™s only 1 seat left!

๐Ÿ“ฉ DM @swastik_raj now to secure your spot and watch your channel grow! ๐Ÿ“ˆโœจ
โค9๐ŸŽ‰4
Do u want albert quiz bot???
Final Results
79%
Yes
21%
No
โค9๐Ÿ‘7
Bot Nations ๐Ÿš€
Do u want albert quiz bot???
๐Ÿ’ก Fun Quiz Challenge Bot [Bots Business Code]

โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

๐ŸŽฏ Command: /quiz

๐Ÿ“ BJS:

// Send quiz intro message
Bot.sendMessage("*๐ŸŒŸ New Quiz Alert! Ready to test your knowledge? ๐Ÿ“š*");

// Start the quiz process
function startQuiz() {
  var apiUrl = "https://opentdb.com/api.php?amount=1";

  // Indicate typing action to the user
  Api.sendChatAction({
    chat_id: chat.chatid,
    action: "typing"
  });

  // Fetch quiz data from OpenTDB API
  HTTP.get({
    url: apiUrl,
    success: "/onQuiz",   // Command to handle quiz data response
    error: "/onError"     // Command to handle error
  });
}

startQuiz();


โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

๐Ÿ“ฅ Command: /onQuiz

๐Ÿ“ BJS:

// Parse the API response
var response = JSON.parse(content);

// Check if quiz data is available
if (response.response_code === 0 && response.results.length > 0) {
  var quiz = response.results[0];

  var question = "๐ŸŽฏ " + quiz.question;
  var correctAnswer = quiz.correct_answer;
  var options = quiz.incorrect_answers.concat(correctAnswer);

  // Shuffle options randomly
  options = options.sort(function() {
    return Math.random() - 0.5;
  });

  // Send quiz poll
  Api.sendPoll({
    chat_id: chat.chatid,
    question: question,
    options: options,
    type: "quiz",
    correct_option_id: options.indexOf(correctAnswer),
    explanation: "โœ… The correct answer is: *" + correctAnswer + "*",
    is_anonymous: false
  });

  // Store data in user properties for later use if needed
  User.setProperty("quiz_question", question, "string");
  User.setProperty("correct_answer", correctAnswer, "string");

  // Send follow-up message with button
  Api.sendMessage({
    chat_id: chat.chatid,
    text: "๐Ÿ” Want to explore more quizzes? ๐ŸŒŸ",
    reply_markup: {
      inline_keyboard: [
        [
          { text: "๐Ÿ” Search More", callback_data: "/quiz" }
        ]
      ]
    }
  });

} else {
  // In case of no data or error in response
  Bot.sendMessage("โš ๏ธ Unable to fetch quiz. Please try again later.");
}


โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

โš ๏ธ Command: /onError

๐Ÿ“ BJS:

Bot.sendMessage("โŒ Failed to load quiz. Please try again later.");


โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

๐Ÿ‘จโ€๐Ÿ’ป Created By: @Swastik_Raj 
ยฉ Copyright: @botnations 
๐Ÿ“ข Love anime? Share this with your friends and remember to give credit if you use it on your channel!
1โค12๐Ÿซก3๐Ÿ‘2
๐ŸŽจ AI Image Generator Bot [TeleBot Creator Code]

โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

๐ŸŒŸ Command: /T2I 
๐Ÿ“Œ Try It Like This: /T2I car or /T2I a robot dancing in the rain

โ“ Requested by: Ducky

๐Ÿ’กBots Business Version: https://t.me/BotNations/297?comment=155735


๐Ÿ“ TPY: 
prompt = params  
if not prompt: 
    bot.sendMessage("โ— Please provide a prompt like: /T2I car with a car best friend") 
    raise ReturnCommand() 

# Show chat action while image is generating 
bot.sendChatAction("upload_photo") 

# Generate image URL 
img_url = f"https://botmaker.serv00.net/pollination.php?prompt={prompt}" 

# Build caption with prompt 
caption = f"๐Ÿ–ผ๏ธ *AI Art Prompt:*\n\n{prompt}\n\nโœจ *Your image has been generated!*" 

# Send AI-generated image 
bot.sendPhoto(img_url, caption=caption, parse_mode="Markdown")


โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–

๐Ÿ‘จโ€๐Ÿ’ป Created By: @Swastik_Raj 
ยฉ Copyright: @botnations 
๐Ÿ“ข Love anime? Share this with your friends and remember to give credit if you use it on your channel!
โค16๐Ÿ‘3
I'm thinking about starting to upload tutorials on my YouTube channel again! ๐ŸŽฅโœจ

What topics would you like to see in those videos? Please let me know in the comments! โฌ‡๏ธ
โค12
๐Ÿค– AutoKicker tpy code

when user leave your channel bot ban him from channel automatically


Command : /handler_chat_member

# Command: /handler_chat_member

if update_type == 'chat_member':
chat_id = message.chat.id
user = message.new_chat_member.user
user_id = user.id

if message.new_chat_member.status == 'left':
try:
# Remove (kick) the user from the channel
bot.kickChatMember(
chat_id=chat_id,
user_id=user_id,
until_date=0 # Remove without ban, can rejoin
)
except Exception as e:
pass # Ignore errors silently


๐Ÿ“ฑ Made by : @a1mbo
๐ŸŒ Website : Telebotcreator.com


Plz ๐Ÿ™ share with credit ๐Ÿ˜ญ
โค11๐Ÿ‘2
๐Ÿค– AutoGreeter Bot Tpy

๐Ÿ”น English Description:

> ๐Ÿ’ฌ This bot replies with a message and a sticker when someone types common greetings like gm, gn, etc.
โœ… It replies as a tag to the same message (using reply), and also mentions the user in a stylish format.
โš ๏ธ Works only in group chats, not in private.


๐Ÿ”น Hinglish Description:

> ๐Ÿ’ฌ Ye bot jab koi gm, gn, good night, morning likhta hai to uss message par reply karta hai (tag karke) aur ek sticker bhi bhejta hai.
โœ… Reply ke sath user ka naam mention hota hai stylish format mein.
โš ๏ธ Ye sirf group mein kaam karta hai, private mein nahi.

Command : @

# Command: @

# Only run this block if it's not private
if message.chat.type != "private":

msg_text = message.text.lower().strip()
user_id = message.from_user.id
name = message.from_user.first_name or "Friend"
mention = f"<a href='tg://user?id={user_id}'>{name}</a>"

gn_tags = ["gn", "good night", "g.n", "g n", "night", "gnite", "sleep well", "sweet dreams"]
gm_tags = ["gm", "good morning", "g.m", "g m", "morning", "vgm", "v.g.m", "v g m", "veri good morning", "very good morning"]

if msg_text in gn_tags:
bot.replyText(
chat_id=message.chat.id,
text=f"""<b>โ– ษขแดแดแด… ษดษชษขสœแด› โ– sแดกแด‡แด‡แด› แด…ส€แด‡แด€แดs โ–

โ {mention} ๐Ÿ˜ช

โ– ษขแด แด›แด โžฅ sสŸแด‡แด‡แด˜ แด‡แด€ส€สŸส
</b>""",
parse_mode="HTML",
reply_to_message_id=message.message_id
)
bot.sendSticker(
chat_id=message.chat.id,
sticker="CAACAgUAAxkBAAEC7B5mvnhFWRh8TVNxGiCuLLwp3Qt4EQACaAYAApgIqFX0lPxGg7S_IDUE",
reply_to_message_id=message.message_id
)
raise ReturnCommand()

if msg_text in gm_tags:
bot.replyText(
chat_id=message.chat.id,
text=f"""<b>โ– ษขแดแดแด… แดแดส€ษดษชษดษข โ– สœแด€แด แด‡ แด€ ษดษชแด„แด‡ แด…แด€ส โ–

โ {mention} ๐ŸŒž

โ– sแด›แด€ส แด˜แดsษชแด›ษชแด แด‡ โžฅ แด‹แด‡แด‡แด˜ ๊œฐแดแด„แดœ๊œฑแด‡แด…
</b>""",
parse_mode="HTML",
reply_to_message_id=message.message_id
)
bot.sendSticker(
chat_id=message.chat.id,
sticker="CAACAgIAAxkBAAEDKvdoVbAvSxDVpNNdAAHIo1YsjzcKqfkAAmAAA3io5g-XR8l_6mIspB4E",
reply_to_message_id=message.message_id
)
raise ReturnCommand()



๐Ÿ‘จโ€๐Ÿ’ป Created By: Deoxys 
ยฉ Copyright: Deoxys 
๐Ÿ“ข Love anime? Share this with your friends and remember to give credit if you use it on your channel!
โค29๐Ÿ‘4
โ€œBusy due to study๐Ÿ‘๐Ÿปโ€
โค16๐Ÿ‘7
๐Ÿค– Random card ๐Ÿ’ณ Generator tpy

Command : /generate_card

try:
# Helper function to generate a random number string
def generate_digits(length):
return ''.join([str(libs.Random.randomInt(0, 9)) for _ in range(length)])

# Generate card details
card_number = generate_digits(16)
cvv = generate_digits(3)
month = str(libs.Random.randomInt(1, 12)).zfill(2)
year = libs.Random.randomInt(2025, 2030)
expiry = f"{month}/{year}"

# Enhanced UI Output
card_info = f"""
<b>๐Ÿ’ณ Virtual Card Generator</b>
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
<b>๐Ÿ”ข Card Number:</b>
<code>{card_number}</code>

<b>๐Ÿ“… Expiry Date:</b>
<code>{expiry}</code>

<b>๐Ÿ” CVV:</b>
<code>{cvv}</code>
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
<b>โœ… Generated Successfully!</b>
"""

# Send the formatted message
bot.sendMessage(card_info.strip(), parse_mode="html")

except Exception as e:
bot.sendMessage(f"โš ๏ธ <b>Error:</b> <code>{str(e)}</code>", parse_mode="html")


๐Ÿ“ฑ Made by : @a1mbo
๐ŸŒ Website : Telebotcreator.com


Plz ๐Ÿ™ share with credit ๐Ÿ˜ญ
โค12๐Ÿ‘4
๐Ÿ“ฑ GitHub Profile Information tpy code ๐Ÿค–

Command : /github

Example : /github rahul

if not params:
bot.sendMessage("โŒ Please provide a GitHub username.\n\nExample:\n<code>/github rahul</code>", parse_mode="HTML")
raise ReturnCommand()

username = params.strip()
url = f"https://api.github.com/users/{username}"

try:
res = HTTP.get(url)
data = res.json()

if "message" in data and data["message"] == "Not Found":
bot.sendMessage(f"โŒ GitHub user <b>{username}</b> not found.", parse_mode="HTML")
raise ReturnCommand()

# Extract all fields
name = data.get("name") or "N/A"
login = data.get("login") or "N/A"
id_ = data.get("id") or "N/A"
node_id = data.get("node_id") or "N/A"
avatar = data.get("avatar_url") or ""
html_url = data.get("html_url") or ""
repos_url = data.get("repos_url") or ""
followers_url = data.get("followers_url") or ""
following_url = data.get("following_url") or ""
gists_url = data.get("gists_url") or ""
blog = data.get("blog") or "N/A"
location = data.get("location") or "N/A"
email = data.get("email") or "N/A"
hireable = str(data.get("hireable")) or "N/A"
bio = data.get("bio") or "No bio provided."
twitter = data.get("twitter_username") or "N/A"
company = data.get("company") or "N/A"
followers = data.get("followers", 0)
following = data.get("following", 0)
public_repos = data.get("public_repos", 0)
public_gists = data.get("public_gists", 0)
created = data.get("created_at") or "N/A"
updated = data.get("updated_at") or "N/A"

# Format message
text = (
f"<b>๐Ÿ‘ค GitHub Profile</b>\n"
f"๐Ÿ‘จโ€๐Ÿ’ป Name: <b>{name}</b>\n"
f"๐Ÿ”‘ Username: <code>{login}</code>\n"
f"๐Ÿ†” ID: <code>{id_}</code>\n"
f"๐Ÿงฌ Node ID: <code>{node_id}</code>\n"
f"๐Ÿ“ Location: {location}\n"
f"๐Ÿข Company: {company}\n"
f"๐Ÿ“ฐ Blog: {blog}\n"
f"โœ‰๏ธ Email: {email}\n"
f"๐Ÿ“Œ Hireable: {hireable}\n"
f"๐Ÿฆ Twitter: {twitter}\n"
f"๐Ÿ“ฆ Public Repos: <b>{public_repos}</b>\n"
f"๐Ÿ—ƒ๏ธ Gists: <b>{public_gists}</b>\n"
f"๐Ÿ‘ฅ Followers: <b>{followers}</b> | Following: <b>{following}</b>\n"
f"๐Ÿ“ Bio: <i>{bio}</i>\n"
f"๐Ÿ“… Created: {created}\n"
f"๐Ÿ› ๏ธ Updated: {updated}\n"
f"๐Ÿ”— Profile: <a href='{html_url}'>{html_url}</a>\n"
f"๐Ÿ“ Repos: <a href='{repos_url}'>Repos Link</a>\n"
f"๐Ÿ‘ค Followers: <a href='{followers_url}'>Followers</a>\n"
f"โžก๏ธ Following: <a href='{following_url}'>Following</a>\n"
f"๐Ÿ“‘ Gists: <a href='{gists_url}'>Gists</a>"
)

bot.sendPhoto(photo=avatar, caption=text, parse_mode="HTML")

except Exception as e:
bot.sendMessage("โš ๏ธ Failed to fetch GitHub profile. Try again later.")


๐Ÿ“ฑ Made by : @a1mbo
๐ŸŒ Website : Telebotcreator.com


Plz ๐Ÿ™ share with credit ๐Ÿ˜ญ
โค19๐Ÿ‘4
๐Ÿ’ฌ Need a bot code?
Just drop your request in the comments!
โค14๐Ÿ‘5
---

๐Ÿ“Œ YouTube Video Summarizer Code (BJS for Bots.Business) ๐Ÿ“Œ 
โœ… Tested  Working in BB

---

๐Ÿ“œ Description: Summarize YouTube videos up to 1000 words. 
๐Ÿš€ Command: /start 
โณ Wait for response: โœ… On

---

๐Ÿš€ Command: /start

Bot.sendMessage("๐ŸŽฌ Welcome to the YouTube Summarizer Bot!\n\nPlease send the YouTube video link:");
Bot.runCommand("get_video_url");


---

๐Ÿš€ Command: /get_video_url

โณ Wait for response: โœ… On

let yt_url = message;
User.setProperty("yt_url", yt_url, "string");
Bot.sendMessage("โœ… Got the video link!\nNow enter the word count (15 to 1000):");
Bot.runCommand("/get_word_count");


---

๐Ÿš€ Command: /get_word_count

โณ Wait for response: โœ… On (NOTE: must be On in BB to capture user input)

let user_input = message;
let word_count = parseInt(user_input);

if (isNaN(word_count) || word_count < 15 || word_count > 1000) {
  Bot.sendMessage("โŒ Word count must be between 15 and 1000. Try again:");
  Bot.runCommand("/get_word_count");
  return;
}

let yt_url = User.getProperty("yt_url");
if (!yt_url) {
  Bot.sendMessage("โŒ No video link found. Please start again with /start.");
  return;
}

Bot.sendMessage("โณ Summarizing your video...");

HTTP.get({
  url: "https://api.hazex.sbs/yt-summarizer",
  params: {
    url: yt_url,
    wordCount: word_count
  },
  success: "/onSummaryResult",
  error: "/onSummaryError",
  // Optional: pass word_count for use in the callback
  bb_options: { word_count: word_count }
});


---

๐Ÿš€ Command: /onSummaryResult

let res = JSON.parse(content);

if (res.error) {
  let msg = res.message || "Unknown error occurred.";
  Bot.sendMessage("โŒ API Error: " + msg);
} else {
  let summary = res.result || "โš ๏ธ No summary returned.";
  let word_count = options.word_count;
  Bot.sendMessage("โœ… Summary (" + word_count + " words):\n\n" + summary);
}


---

๐Ÿš€ Command: /onSummaryError

Bot.sendMessage("๐Ÿšซ Failed to connect to the summarization API. Please try again later.");


๐Ÿ‘จโ€๐Ÿ’ป Created By: @Swastik_Raj 
๐Ÿ”— API By:
@HazexApi
ยฉ Copyright:
@botnations 

๐Ÿ“ข Share this with your friends and remember to give credit if you use it on your channel!
โค18๐ŸŽ‰2๐Ÿ”ฅ1
Bot Nations ๐Ÿš€
โ“Which bot do u want first?
Omegle chat bot is on the way.......... ๐Ÿ”œ
๐Ÿ‘20โค16๐Ÿคฉ5
Happy Rakshabandhan To All @botnations Family Members โค๏ธ
โค8
Forwarded from Nova: Your AI Companion ๐Ÿค–
๐Ÿ‘‹ Welcome to AI Helper Bot!

I can assist you with a variety of tasks:

๐Ÿ–ผ๏ธ Image Generation:
- /p [prompt] โ†’ Generate pollination-themed image
- /turbo [prompt] โ†’ Fast & detailed image generation
- /flux [prompt] โ†’ Generate Flux-style visuals
- /img [prompt] โ†’ Use default image model

๐Ÿง  AI & Code Help:
- /qwen [question] โ†’ Ask lightweight Qwen model
- /ask [question] โ†’ Get answers via ChatGPT-4.0
- /deep [question] โ†’ Use DeepSeek for advanced queries
- /php [code] โ†’ Solve PHP-related issues
- /tbc [query] โ†’ Help with TeleBotCreator platform
- /bb [query] โ†’ Solve queries from Bots.Business

๐Ÿ› ๏ธ Utilities:
- /vehicle [number] โ†’ Get vehicle details via plate number
- /font [name] โ†’ Find fonts from dafont.com
- /barcode [text] โ†’ Generate a barcode
- /gif [query] โ†’ Search for a GIF
- /dict [word] โ†’ Look up definitions and meanings
- /tts [text] โ†’ Convert text to speech
- /qr [text/link] โ†’ Create QR code
- /carbon [code/text] โ†’ Make Carbon-style image

Made with โค๏ธ by @botnations
โค10๐Ÿคฉ2
Wishing you all a vibrant and joyous Independence Day! Letโ€™s come together to celebrate our nationโ€™s strength and resilience. ๐Ÿ‡ฎ๐Ÿ‡ณ๐ŸŽŠ
โค10๐Ÿซก2โšก1
Jai Shree Radhe ๐Ÿฆš
โค16๐Ÿซก3๐Ÿ‘2
๐Ÿซถ๐Ÿป Delete URL From Group (Only For Group) [Bots Business Code]
โ“ Delete Message If it's contain any URL.


โค Command: *

๐Ÿ” BJS:
if (chat.chat_type != "private") {
const admin_id = [1789993737, 6261873071]//admin tg id here
if (!admin_id.includes(user.telegramid)) {
function validURL(url) {
var regex = /^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/
return regex.test(url)
}

if (validURL(message)) {
var message_id = request.message_id

Api.deleteMessage({
message_id: message_id
})
return
}
return
}
return
}

โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
โš ๏ธ Give credit if you are posting on your channel.

๐Ÿ‘จโ€๐Ÿ’ป Created By:
Swastik
ยฉ Credit: @botnations.
โค14๐Ÿณ3