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:
๐ BJS:
โโโโโโโโโโโโโโโโ
๐ฅ Command:
๐ BJS:
โโโโโโโโโโโโโโโโ
โ ๏ธ Command:
๐ BJS:
โโโโโโโโโโโโโโโโ
๐จโ๐ป 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!
[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! ๐โจ
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
โค9๐7
Bot Nations ๐
Do u want albert quiz bot???
๐ก Fun Quiz Challenge Bot [Bots Business Code]
โโโโโโโโโโโโโโโโ
๐ฏ Command:
๐ BJS:
โโโโโโโโโโโโโโโโ
๐ฅ Command:
๐ BJS:
โโโโโโโโโโโโโโโโ
โ ๏ธ Command:
๐ BJS:
โโโโโโโโโโโโโโโโ
๐จโ๐ป 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!
โโโโโโโโโโโโโโโโ
๐ฏ 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:
๐ TPY:
โโโโโโโโโโโโโโ
๐จโ๐ป 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!
โโโโโโโโโโโโโโ
๐ Command:
/T2I ๐ Try It Like This:/T2I caror/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! โฌ๏ธ
What topics would you like to see in those videos? Please let me know in the comments! โฌ๏ธ
โค12
๐ค AutoKicker tpy code
Command :
๐ฑ Made by : @a1mbo
๐ Website : Telebotcreator.com
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
Command :
๐จโ๐ป Created By: Deoxys
ยฉ Copyright: Deoxys
๐ข Love anime? Share this with your friends and remember to give credit if you use it on your channel!
๐น 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
๐ค Random card ๐ณ Generator tpy
Command :
๐ฑ Made by : @a1mbo
๐ Website : Telebotcreator.com
Command :
/generate_cardtry:
# 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 :
Example :
๐ฑ Made by : @a1mbo
๐ Website : Telebotcreator.com
Command :
/githubExample :
/github rahulif 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!
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:
---
๐ Command:
โณ Wait for response: โ On
---
๐ Command:
โณ Wait for response: โ On (NOTE: must be On in BB to capture user input)
---
๐ Command:
---
๐ Command:
๐จโ๐ป Created By: @Swastik_Raj
๐ API By: @HazexApi
ยฉ Copyright: @botnations
๐ 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:
/startBot.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:
/onSummaryErrorBot.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
โWhich bot do u want first?
Anonymous Poll
23%
๐ Vote Bot(in TBC)
23%
๐ป Movie Filter Bot(in PHP)
42%
๐ฆ Omegle Chat Bot
12%
๐คจ Other? Comment down ๐๐ป
โค5๐5
Bot Nations ๐
โWhich bot do u want first?
Omegle chat bot is on the way.......... ๐
๐20โค16๐คฉ5
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
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
Telegram
Bot Nations ๐
๐๐ป 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.
๐ค 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.
โค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
๐ซถ๐ป Delete URL From Group (Only For Group) [Bots Business Code]
โค Command:
๐ BJS:
โโโโโโโโโโโโโโโโโ
โ ๏ธ Give credit if you are posting on your channel.
๐จโ๐ป Created By: Swastik
ยฉ Credit: @botnations.
โ 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