๐จ Urgent: Stand Against Racism! ๐จ
Namaste,
@PajeetLaborCamp was created to spread hate and target Indian people and our religions. We are NOT victimsโweโre a strong, united community that stands up for respect and dignity! ๐ฎ๐ณ
Hereโs what you can do:
โฆ Manually report as many posts as possible from @PajeetLaborCamp.
โฆ Use @SearchReport bot: Submit โ @PajeetLaborCamp.
โฆ Try every reporting method to help get this channel banned!
Forward this message to your channels and groups to spread the word.
Comment "
Jai Hind" if youโve taken action! ๐ช Letโs show them we wonโt tolerate hateโare you with me?
โค3๐ฅ3๐1
Thank you guys! ๐
โค3๐ฅ1๐1
๐ CHANNEL AUTO REACTION [BJS]
โ Command:
*// Posted by @BotVerseRavi on Telegram
var request2 =JSON.parse(request)
if(request2.channel_post){
var msgid = request2.channel_post.message_id
var ch = request2.channel_post.sender_chat.id
var myEmoji = ["๐", "๐", "โค", "๐ฅ", "๐ฅฐ", "๐", "๐", "๐ค", "๐คฏ", "๐ฑ", "๐คฌ", "๐ข", "๐", "๐คฉ", "๐คฎ", "๐ฉ", "๐", "๐", "๐", "๐คก", "๐ฅฑ", "๐ฅด", "๐", "๐ณ", "โคโ๐ฅ", "๐", "๐ญ", "๐ฏ", "๐คฃ", "โก", "๐", "๐", "๐", "๐คจ", "๐", "๐", "๐พ", "๐", "๐", "๐", "๐ด", "๐ญ", "๐ค", "๐ป", "๐จโ๐ป", "๐", "๐", "๐", "๐", "๐จ", "๐ค", "โ", "๐ค", "๐ซก", "๐ ", "๐", "โ", "๐ ", "๐คช", "๐ฟ", "๐", "๐", "๐", "๐ฆ", "๐", "๐", "๐", "๐", "๐พ", "๐คทโโ", "๐คท", "๐คทโโ", "๐ก"]
var doEmoji = myEmoji[Math.floor(Math.random() * myEmoji.length)];
HTTP.post({
url: "https://api.telegram.org/bot" + bot.token + "/setMessageReaction",
body: {
chat_id: ch,
message_id: msgid,
reaction: JSON.stringify([
{
type: "emoji",
emoji: doEmoji,
is_big: true
}
])
}
});
}
๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this channel with your friends and remember to give credit if you use it on your channel!
๐2โค1๐ฅ1๐คฉ1
Gแดแด Rแดษดแด แดแด Wษชษดษดแดส ๐ Iษด Yแดแดส Cสแดษดษดแดส Wสแด Pแดสแดษชแดษชแดแดแดแดแด Iษด Gษชแด แดแดแดกแดส ๐ฅ-----------------Cแดแด แดs--------------------
[TBC]
Command :
/start#Posted by @BotVerseRavi pm Telegram.
broadcast = Bot.getData("broadcast")
if broadcast == None:
push = []
else:
push = broadcast
check_user = push.count(u)
if check_user > 0:
try:
bot.answerCallbackQuery(call.id,"You have already participated!",show_alert=True)
except:
bot.sendMessage("You have already participated!")
raise ReturnCommand
else:
push.append(u)
Bot.saveData("broadcast", push)
try:
bot.answerCallbackQuery(call.id,"You have participated successfully!",show_alert=True)
except:
bot.replyText(u, "You have participated successfully!")
markup = InlineKeyboardMarkup()
markup.add(InlineKeyboardButton(text="Participate",callback_data="/start"))
Broadcast = Bot.getData("broadcast")
Promo = "Join ๐ <a href='https://t.me/BotVerseRavi'>BotVerse by Ravi</a>"
Prize = "2 TRX"
Winners = "1"
Already = Bot.getData("Already")
if Already == None:
msg = bot.sendMessage(chat_id="@channel_isd",text=f"""๐ GIVEAWAY ๐ ๐ฅ{len(Broadcast)}
โข Prize: {Prize}
โข Winners: {Winners}
โข Ending: 2 Days
{Promo}""",disable_web_page_preview=True,reply_markup=markup)
Bot.runCommandAfter(timeout=86400,command="completed", options=msg.message_id)
Bot.saveData("Already",True)
else:
bot.editMessageText(chat_id="@channel_ids",message_id=message.message_id,text=f"""๐ GIVEAWAY ๐ ๐ฅ{len(Broadcast)}
โข Prize: {Prize}
โข Winners: {Winners}
โข Ending: 2 Days
{Promo}""",disable_web_page_preview=True,reply_markup=markup)
Command :
completed# Posted by @BotVerseRavi on Telegram.
Bot.runCommandAfter(timeout=86400,command="completed2", options=options)
Command:
completed2# Posted by @BotVerseRavi on Telegram.
broadcast = Bot.getData("broadcast")
random = libs.Random.randomInt(0, len(broadcast)-1)
winner = broadcast[random]
chat = bot.getChat(winner)
bot.editMessageText(chat_id="@channel_idS", message_id=options,text=f"๐ <b>Winner Found\n\n๐ค User: {chat.first_name}\n๐ Telegram ID: {winner}</b>")
๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this channel with your friends and remember to give credit if you use it on your channel!
โค1๐ฅ1๐ฅฐ1๐คฉ1๐1
๐ฅ New Device Verification Is Live ๐ [TBC]
๐ฐ Command
/verifyPart 1
# Posted by @BotVerseRavi on Telegram.
uppercase_letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
lowercase_letters = "abcdefghijklmnopqrstuvwxyz"
numbers = "0123456789"
# Combine the pools
all_characters = uppercase_letters + lowercase_letters + numbers
# Generate a 34-character random hash
random_hash = "".join(libs.random.randomWeightedChoice(all_characters, [1] * len(all_characters)) for _ in range(34))
webhook = libs.Webhook.getUrlFor(command="/onWebhook", user_id=u)
try:
response = HTTP.get(f"https://bot.tamimwebdev.xyz/system-finder-dev/webhook_api.php?botHash={random_hash}&bot={Bot.info().username}&webhook_url={webhook}")
response_data = response.json() # Parse JSON response
# Format response message
except Exception as e:
bot.sendMessage(e)
pass
webPage = f"https://bot.tamimwebdev.xyz/system-finder-dev/work-vercel-html.php?botHash={random_hash}&bot={Bot.info().username}"
keys = [[InlineKeyboardButton(text='Verify', web_app=webPage)]]
button = InlineKeyboardMarkup(keys)
bot.sendMessage("<b>๐ Verify Yourself To Start Bot</b>", reply_markup=button)
๐ฐCommand
/onWebhookImportant: to get menu and don't want to give referral bonus then use this code to continue menu
# Posted by @BotVerseRavi on Telegram
if options is None or options.json is None:
bot.replyText(u, "โ Not Allowed", parse_mode="Markdown")
raise ReturnCommand()
else:
data = bunchify(options.json)
bot.sendMessage(data)
# Extract values from IP worker response
status = data.get("status")
user_id = str(data.get("user_id"))
message_text = data.get("message", "")
# Default values
verified_key = str(u) + "verify"
# If already verified
if Bot.getData(verified_key):
raise ReturnCommand()
# Save success
if status == "success":
User.saveData("AllOk", "True")
Bot.saveData(verified_key, "verified")
keyboard = ReplyKeyboardMarkup(True)
keyboard.row("๐ Balance", "๐ซ Refer & Earn")
keyboard.row("๐ Bonus")
keyboard.row("๐ Link UPI", "๐ Withdraw")
bot.replyText(
chat_id=message.chat.id,
text="<b>๐ซ Welcome To Cash Giveaway Bot!</b>",
reply_markup=keyboard
)
raise ReturnCommand()
# Duplicate or multi-device detected, still allow access
elif status == "fail":
User.saveData("AllOk", "True")
Bot.saveData(verified_key, "verified")
keyboard = ReplyKeyboardMarkup(True)
keyboard.row("๐ Balance", "๐ซ Refer & Earn")
keyboard.row("๐ Bonus")
keyboard.row("๐ Link UPI", "๐ Withdraw")
bot.replyText(
chat_id=message.chat.id,
text=f"<b>๐ก Welcome To Refer & Earn Bot!\n\n๐ Same Device Detected By System!\n\nStill You Can Refer & Earn ๐ฅณ</b>",
reply_markup=keyboard
)
raise ReturnCommand()
# Already verified (continue)
elif status == "continue":
Bot.saveData(verified_key, "verified")
User.saveData("AllOk", "True")
keyboard = ReplyKeyboardMarkup(True)
keyboard.row("๐ Balance", "๐ซ Refer & Earn")
keyboard.row("๐ Bonus")
keyboard.row("๐ Link UPI", "๐ Withdraw")
bot.replyText(
chat_id=message.chat.id,
text="<b>๐ซ Welcome To Cash Giveaway Bot!</b>",
reply_markup=keyboard
)
raise ReturnCommand()
# If none matched
else:
bot.replyText(u, "โ Not Allowed", parse_mode="Markdown")
raise ReturnCommand()
๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this channel with your friends and remember to give credit if you use it on your channel!
โค1๐ฅ1๐ฅฐ1๐1๐ค1
๐ข Update: Privacy Policy & Terms of Use
We've updated our Privacy Policy and Terms of Use to improve clarity and reflect how we handle your data and services.
To continue using our bots & mini-apps, please take a moment to review the new policies.
๐ Privacy Policy
๐ Terms of Use
By continuing, you agree to the updated terms. If you have questions, feel free to contact @BotVerseRaviSupport.
Thank you for your trust and support! โค๏ธ
โค3๐2
Part 2 [TBC]
๐ฐCommand
/onWebhookImportant for ban users directly
# Posted by @BotVerseRavi on Telegram
# Check if 'json' key exists
if options is None or options.json is None:
bot.replyText(u, "โ Not Allowed", parse_mode="Markdown")
raise ReturnCommand()
# Extract fields from IP worker JSON response
response = options['json']
status = response.get('status')
user_id = response.get('user_id')
message_text = response.get('message', "")
# Ban check based on status
if status == "continue":
bot.sendMessage(
"โ๏ธ <b>Youโre already a verified user!</b>\n\n"
"๐ Redirecting you to the main menu...",
parse_mode="html"
)
# Bot.runCommand('/main-menu')
raise ReturnCommand()
elif status == "fail":
User.saveData('ban_u', True)
if "duplicate" in message_text.lower():
bot.sendMessage(
"๐จ <b>Security Violation Detected!</b>\n\n"
"โ ๏ธ Multiple accounts detected from your device.\n"
"Youโve been <u>banned</u> from using this bot.",
parse_mode="html"
)
else:
bot.sendMessage(
"๐ซ <b>Access Denied!</b>\n\n"
"Weโve detected <u>suspicious activity</u> or proxy use.\n"
"You have been <b>permanently banned</b> from using this bot.",
parse_mode="html"
)
raise ReturnCommand()
elif status == "success":
User.saveData("verification_made", True)
bot.sendMessage(
"โ <b>Verification Successful!</b>\n\n"
"๐ You're now verified and can use all features of the bot.",
parse_mode="html"
)
raise ReturnCommand()
else:
bot.sendMessage(
"โ <b>Unknown response received.</b>\n\n"
"Please try again or contact support.",
parse_mode="html"
)
raise ReturnCommand()
๐ฐ Command
@# Posted by @BotVerseRavi on Telegram
if User.getData('ban_u') == True:
bot.sendMessage(
"๐ซ <b>Access Denied!</b>\n\n"
"Weโve detected <u>suspicious activity</u> or proxy use.\n"
"You have been <b>permanently banned</b> from using this bot.",
parse_mode="html"
)
raise returnCommand()
๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this channel with your friends and remember to give credit if you use it on your channel!
โค6๐1
Device Verification Script [TBC]
1โฃ Part 1
2โฃ Part 2
๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this channel with your friends and remember to give credit if you use it on your channel!
๐2โค1๐ฅ1๐ฅฐ1
โ๏ธ Text Quiz Poll Maker ๐ฅ [TPY]
๐ Command:
/quiz# Posted by @BotVerseRavi on Telegram
bot.sendChatAction(chat_id=message.chat.id, action="typing")
parts = message.text.split(" ", 1)
if len(parts) > 1:
topic = parts[1]
else:
topic = "quiz"
api_url = f"https://pollmakerai.apinepdev.workers.dev/?question={topic}"
try:
response = HTTP.get(api_url)
response.raise_for_status()
data = response.json()
question = data.get("question")
options = data.get("options", [])
correct_answer = data.get("correct_answer")
explanation = data.get("explanation")
if not all([question, options, correct_answer]):
bot.sendMessage(
chat_id=message.chat.id,
text=f"โ Sorry, I couldn't find a quiz for the topic '{topic}'. Please try another one."
)
raise ReturnCommand()
correct_option_id = options.index(correct_answer)
bot.sendPoll(
chat_id=message.chat.id,
question=question,
options=options,
type='quiz',
correct_option_id=correct_option_id,
explanation=explanation,
is_anonymous=False
)
except Exception as e:
bot.sendMessage(
chat_id=message.chat.id,
text="โ An error occurred while fetching the quiz. Please try again later."
)
๐ ๏ธ How to Use:
Use the command
/quiz or type quiz followed by your topic. For example, quiz History of the Roman Empire..๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this channel with your friends and remember to give credit if you use it on your channel!
โค1๐1๐ฅ1๐1๐ค1
Having trouble deploying your bot with our code scripts?
Let us know in the comments below! We're happy to help troubleshoot any issues you're encountering. Any suggestions you have for this channel are also welcome.
๐ฅ2โค1๐1
BotVerse by Ravi
Having trouble deploying your bot with our code scripts? Let us know in the comments below! We're happy to help troubleshoot any issues you're encountering. Any suggestions you have for this channel are also welcome.
No issues, great! Everyone is successfully deploying their bots using our script.
Happy Coding! ๐
Happy Coding! ๐
โค3๐2๐ฅ1๐ฅฐ1๐1๐1
๐ฑ GitHub Profile Information [TBC]
Command :
/githubExample :
/github BotVerseRavi# Posted by @BotVerseRavi on Telegram
if not params:
bot.sendMessage("โ Please provide a GitHub username.\n\nExample:\n<code>/github BotVerseRavi</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.")
๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this channel with your friends and remember to give credit if you use it on your channel!
โค2๐1๐คฉ1๐1๐ค1
๐ค Random Card ๐ณ Generator [TBC]
Command :
/gen# Posted by @BotVerseRavi on Telegram
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")
๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this channel with your friends and remember to give credit if you use it on your channel!
๐ฅ2โค1๐1๐คฉ1๐1
๐ค โHow To Set Bot Menu Commands In Your Bot [TBC]
๐งฉ Command:
/setMyCommands# Posted by @BotVerseRavi on Telegram
bot_token = Bot.info().token
commands = [
{'command': 'start', 'description': 'start me'},
{'command': 'help', 'description': 'get help'},
{'command': 'list', 'description': 'just ok'}
]
# Set the commands
url = f'https://api.telegram.org/bot{bot_token}/setMyCommands'
headers = {'Content-type': 'application/json'}
data = {
'commands': commands,
'scope': {'type': 'default'}
}
response = bunchify(HTTP.post(url, headers=headers, json=data).json())
bot.replyText(u, response)
๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this channel with your friends and remember to give credit if you use it on your channel!
โค1๐1๐ฅ1๐คฉ1
๐ค Broadcast [TPY Script]
Command :
/broadcast# Posted by @BotVerseRavi on Telegram
admins = ["123456789"]
if str(u) not in admins:
raise ReturnCommand()
if options == None:
bot.replyText(u, "<b>๐๏ธ Send Any Message To Broadcast in HTML\n\nTo Cancel: /cancel</b>", parse_mode="html")
Bot.handleNextCommand("/broadcast", options=True)
raise ReturnCommand()
else:
if message.text == "/cancel":
bot.sendMessage("<b>โ Cancelled</b>", parse_mode="html")
raise ReturnCommand()
# Function to create broadcast code
def broadcast(method, txt, fileId):
typ = method.lower()
if method == "Message":
code = f"""bot.sendMessage(chat_id=u, text='''{txt}''', parse_mode="html")"""
elif str(txt) == "None":
code = f"""bot.send{method}(chat_id=u, {typ}="{fileId}")"""
else:
code = f"""bot.send{method}(chat_id=u, {typ}="{fileId}", caption='''{txt}''', parse_mode="html")"""
return code
# Detect content and apply HTML formatting
txt = message.caption if message.caption else message.text
entities = message.caption_entities if message.caption else message.entities
txt = apply_html_entities(txt, entities, {}) # Corrected with third param
# Identify message type and prepare broadcast
if message.photo:
code = broadcast("Photo", txt, message.photo[-1].file_id)
elif message.text:
code = broadcast("Message", txt, None)
elif message.video:
code = broadcast("Video", txt, message.video.file_id)
elif message.audio:
code = broadcast("Audio", txt, message.audio.file_id)
elif message.document:
code = broadcast("Document", txt, message.document.file_id)
elif message.sticker:
code = broadcast("Sticker", txt, message.sticker.file_id)
elif message.animation:
code = broadcast("Animation", txt, message.animation.file_id)
else:
bot.sendMessage("<b>โ Wrong File Format!</b>", parse_mode="html")
raise ReturnCommand()
# Launch the broadcast
url = libs.Webhook.getUrlFor("/broadResult", u)
task = Bot.broadcast(code=code, callback_url=url)
Bot.saveData(task, None)
bot.sendMessage("<b>๐ Broadcast Processing...</b>", parse_mode="html")
Command :
/broadResult# Posted by @BotVerseRavi on Telegram
try:
get = options.json
total = get.total
success = get.total_success
fail = get.total_errors
txt = f"""<b>
๐๏ธ Broadcast Done
๐ฅ Total: {total}
โ Success: {success}
โ Failed: {fail}
</b>"""
bot.sendMessage(txt)
except:
bot.sendMessage("<b>โ Broadcast Data Process Failed</b>")
โ ๏ธ Note: Replace
123456789 with your user ID.๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this channel with your friends and remember to give credit if you use it on your channel!
โค1๐1๐ฅ1๐คฉ1
๐ YouTube Video Summarizer Code (BJS for Bots.Business)
๐ Description: Summarize YouTube videos up to 1000 words.
๐ Command: /start
โณ Wait for response: โ On
---
๐ Command:
/start// Posted by @BotVerseRavi on Telegram
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
// Posted by @BotVerseRavi on Telegram
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)
// Posted by @BotVerseRavi on Telegram
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 // Posted by @BotVerseRavi on Telegram
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// Posted by @BotVerseRavi on Telegram
Bot.sendMessage("๐ซ Failed to connect to the summarization API. Please try again later.");
๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this with your friends and remember to give credit if you use it on your channel!
๐2 2โค1๐ฅ1๐คฉ1
๐ค Random Quote Sender [TPY]
Command :
/quote# Posted by @BotVerseRavi on Telegram
api_url = "https://zenquotes.io/api/random"
response = HTTP.get(api_url)
if response.status_code == 200:
data = response.json()
quote = data[0]["q"]
author = data[0]["a"]
message_text = f"โ {quote} โ\n\nโ *{author}*"
bot.sendMessage(chat_id=u, text=message_text, parse_mode="Markdown")
else:
bot.sendMessage("Failed to fetch a quote. Please try again later.")
๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this channel with your friends and remember to give credit if you use it on your channel!
โค1๐ฅ1๐คฉ1๐1 1
๐ Free Image Processing API Source Code
// Posted by @BotVerseRavi on Telegram
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๐จ๐ปโ๐ป Posted by @BotVerseRavi
๐ข Share this channel with your friends and remember to give credit if you use it on your channel!
โค4๐ฅ2๐1๐คฉ1 1