BotVerse by Ravi
157 subscribers
32 photos
4 videos
4 files
63 links
Explore the BotVerse! Updates, insights, and creations from Ravi's world of bots.

Support Chat: @BotVerseRaviSupport
Support Bot: @BotVerseRavi_bot

t.me/boost/BotVerseRavi
Download Telegram
🌟 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🀩11
❀️‍πŸ”₯ 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



πŸ‘¨πŸ»β€πŸ’» Posted by @BotVerseRavi


πŸ“’ Share this channel with your friends and remember to give credit if you use it on your channel!
πŸ”₯3❀1πŸ₯°1🀝11
πŸ†• Introducing Our Instagram Reel Download API!
Powered by @BotVerseRavi


πŸ“₯ Easily download Instagram Reels via a simple API call. Whether you're a developer building a bot, app, or automation tool β€” this free public API is for you.

πŸš€ API Endpoint:

https://instagram-api-botverseravi.gt.tc/api.php/?url=<INSTAGRAM_REEL_URL>

πŸ“Œ Example:

https://instagram-api-botverseravi.gt.tc/api.php/?url=https://www.instagram.com/reel/DKuM_oLvhQm/?igsh=cTIybHNrdTFqdG5y

πŸ”— Docs & Live Preview:

https://instagram-api-botverseravi.gt.tc

πŸ‘¨β€πŸ’» Developer: @Unknown_RK01
🌐 Channel: @BotVerseRavi
πŸ› οΈ Support: @BotVerseRaviSupport

πŸ“œ Terms of Use | Privacy Policy
❀2πŸ”₯1🀩1πŸ‘Œ1πŸ†11
Type this command to get complete bot statistics πŸ“Š β€” including Bot ID, username, name, and more! [TPY]
Command : /your_command_name

# Posted by @BotVerseRavi on Telegram

stats = Account.get_bots_stats()

if stats["ok"]:
result = stats["result"]

msg = "πŸ“Š Account Bot Statistics\n"
msg += f"β€’ Total Bots: {result['total_bots']}\n"
msg += f"β€’ Total Users: {result['total_users']}\n"
msg += f"β€’ Active Users: {result['total_active_users']}\n"
msg += f"β€’ Total Commands: {result['total_commands']}\n"

msg += "\nπŸ“¦ Bots Overview:\n"

for b in result["bots"]:
msg += f"\nπŸ”Ή {b['name']}\n"
msg += f"β€’ Bot ID: {b['botid']}\n"
msg += f"β€’ Username: @{b['username']}\n"
msg += f"β€’ Status: {b['status']}\n"
msg += f"β€’ Users: {b['users']} | Active: {b['active_users']}\n"
msg += f"β€’ Blocked: {b['blocked_users']}\n"
msg += f"β€’ Commands: {b['commands']}\n"
msg += f"β€’ Points Used: {b['points_used']}\n"

msg += "\nπŸ”Ή Powered by BotVerse by Ravi\nJoin : @BotVerseRavi"

if len(msg) > 4000:
Account.saveData("all_stats_log", msg)
file = Account.getDataFile("all_stats_log")
Bot.sendDocument(file, caption="πŸ“„ Full Bot Stats")
else:
Bot.sendMessage(text=f"<pre>{msg}</pre>", parse_mode="HTML")
else:
Bot.sendMessage("❌ Failed to fetch account statistics.")


πŸ‘¨πŸ»β€πŸ’» Posted by @BotVerseRavi


πŸ“’ Share this channel with your friends and remember to give credit if you use it on your channel!
πŸ”₯1πŸ™1🀝111
Creating a Link Remover Bot for a Telegram group using PHP


1. Creating a Bot using @BotFather.
2. Adding the Bot to the Group and making it an admin.
3. Using Telegram Bot API to monitor messages and delete those containing links.

Step 1: Create a Bot
β€’ Go to @BotFather and type /newbot.
β€’ Follow the steps and get your bot token.

Step 2: Add the Bot to Your Group
β€’ Add the bot to your Telegram group.
β€’ Promote it to admin with "Delete Messages" permission.

Step 3: Deploy PHP Bot
Save the following script as link_remover_bot.php on your server:

<?php

$botToken = "YOUR_BOT_TOKEN"; // Replace with your bot token
$update = json_decode(file_get_contents("php://input"), true);

if (isset($update['message'])) {
$message = $update['message'];
$chatId = $message['chat']['id'];
$messageId = $message['message_id'];
$text = isset($message['text']) ? $message['text'] : '';

// Regular expression to detect links
if (preg_match('/https?:\/\/|www\./i', $text)) {
deleteMessage($chatId, $messageId);
}
}

// Function to delete a message
function deleteMessage($chatId, $messageId) {
global $botToken;
$url = "https://api.telegram.org/bot$botToken/deleteMessage";

$data = [
'chat_id' => $chatId,
'message_id' => $messageId
];

file_get_contents($url . "?" . http_build_query($data));
}

?>


Step 4: Set Up a Webhook
You need to host the script on a server with HTTPS and set a webhook:

https://api.telegram.org/botYOUR_BOT_TOKEN/setWebhook?url=YOUR_SERVER_URL/link_remover_bot.php

Note: Replace YOUR_BOT_TOKEN and YOUR_SERVER_URL with your actual bot token and server URL.


πŸ‘¨πŸ»β€πŸ’» Posted by @BotVerseRavi



πŸ“’ Share this channel with your friends and remember to give credit if you use it on your channel!
3❀2😁211
πŸ“’ How to Create Inline Search in TBC (Step-by-Step)


1️⃣ Enable Inline Mode in BotFather

Before your bot can respond to inline queries (like @YourBotName something), you must turn on inline mode:

1. Open @BotFather in Telegram.
2. Send /setinline.
3. Choose your bot.
4. Set a placeholder (e.g. Search something...).
5. Done βœ… β€” now Telegram will send inline queries to your bot.
2️⃣ Create the Command in Telebot Creator

β€’ Go to your bot in TBC.
β€’ Create a new command.
β€’ Name it exactly: /handler_inline_query
β€’ This command will automatically run when someone types @YourBotName in any chat.

3️⃣ Full TPY Code with Static Data

# Posted by @BotVerseRavi on Telegram

# Get the text after the bot's username
query = message.query.strip() if message.query else ""

# If no query entered, show default items
if not query:
results = [
{
"type": "article",
"id": "1",
"title": "Static Result 1",
"description": "Example description",
"input_message_content": {
"message_text": "You selected Static Result 1"
}
},
{
"type": "article",
"id": "2",
"title": "Static Result 2",
"description": "Another example",
"input_message_content": {
"message_text": "You selected Static Result 2"
}
}
]
else:
# Show what the user typed
results = [
{
"type": "article",
"id": "typed",
"title": f"You searched: {query}",
"description": "Click to send this text",
"input_message_content": {
"message_text": f"You searched: {query}"
}
}
]

# Answer the inline query
bot.answerInlineQuery(
message.id,
results,
cache_time=1
)

4️⃣ How It Works
β€’ If the user types @YourBotName β†’ shows two static items.

β€’ If the user types @YourBotName hello β†’ shows their search text as a result.

β€’ You can replace the static data with API results later (Pixabay, Google Images, etc.).

5️⃣ Testing
1. Open any chat (even Saved Messages).

2. Type: @YourBotName

β†’ See static results.
3. Type:
@YourBotName cats


β†’ See β€œYou searched: cats”.

πŸ‘¨πŸ»β€πŸ’» 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πŸ†1
πŸ€– Telegram Story Download [TPY]


Command : *

# Posted by @BotVerseRavi on Telegram
username = msg.strip()
User.saveData("story_username", username)
res = HTTP.get(f"https://telegram-story.apis-bj-devs.workers.dev/?username={username}&action=archive")
data = res.json()

if data["status"] and data["result"]["totalStories"] > 0:
User.saveData("story_data", data["result"]["stories"])
Bot.runCommand("show_story")
else:
bot.sendMessage("No stories found or invalid username.")

Command : show_story

# Posted by @BotVerseRavi on Telegram
index = int(User.getData("story_index") or 0)
stories = User.getData("story_data")

if index < 0 or index >= len(stories):
bot.sendMessage("Invalid story index.")
else:
if message.message_id:
message_id = message.message_id
bot.deleteMessage(
chat_id=message.chat.id,
message_id=message_id
)
story = stories[index]
User.saveData("story_index", index)

keyboard = [[
{"text": "β—€ Back", "callback_data": "prev_story"},
{"text": "Next β–Ά", "callback_data": "next_story"}
]]
bot.sendVideo(story["url"], caption=f"Story {index + 1} of {len(stories)}\nDate: {story['date']}", reply_markup={"inline_keyboard": keyboard})

Command : prev_story

# Posted by @BotVerseRavi on Telegram
bot.answerCallbackQuery(call.id,"Back Done βœ…...",show_alert=False)
index = int(User.getData("story_index") or 0)
User.saveData("story_index", max(0, index - 1))
Bot.runCommand("show_story")

Command : next_story

# Posted by @BotVerseRavi on Telegram
bot.answerCallbackQuery(call.id,"Next Done βœ…...",show_alert=False)
index = int(User.getData("story_index") or 0)
stories = User.getData("story_data")
User.saveData("story_index", min(index + 1, len(stories) - 1))
Bot.runCommand("show_story")

⚑️ Demo Project : @Stories_Downbot


πŸ‘¨πŸ»β€πŸ’» 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
Age calculator by date of birth


Command: /calculate
Answer: Enter your date of birth.
Format: DD-MM-YYYY

Wait for answer: 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🀝1
BJS

// Posted by @BotVerseRavi on Telegram

function calculateDetailedAge(dobInput) {
    const dateFormat = /^\d{2}-\d{2}-\d{4}$/;
    if (!dateFormat.test(dobInput)) {
        Bot.sendMessage("Please enter your date of birth in format: DD-MM-YYYY");
        return;
    }

    const [day, month, year] = dobInput.split('-');
    const dob = new Date(`${year}-${month}-${day}`);
    const today = new Date();

    let ageYears = today.getFullYear() - dob.getFullYear();
    let ageMonths = today.getMonth() - dob.getMonth();
    let ageDays = today.getDate() - dob.getDate();

    if (ageDays < 0) {
        ageMonths--;
        ageDays += new Date(today.getFullYear(), today.getMonth(), 0).getDate();
    }

    if (ageMonths < 0) {
        ageYears--;
        ageMonths += 12;
    }

    const totalDays = Math.floor((today - dob) / (1000 * 60 * 60 * 24));
    const totalHours = totalDays * 24;
    const totalMinutes = totalHours * 60;
    const totalSeconds = totalMinutes * 60;
    const totalWeeks = Math.floor(totalDays / 7);
    const weeksDays = totalDays % 7;

    const nextBirthday = new Date(today.getFullYear(), dob.getMonth(), dob.getDate());
    if (nextBirthday < today) nextBirthday.setFullYear(today.getFullYear() + 1);
    const daysUntilNextBirthday = Math.floor((nextBirthday - today) / (1000 * 60 * 60 * 24));

    const ageInDifferentTimeUnits = ageYears + " years " + ageMonths + " months " + ageDays + " days\n- " +
        (ageYears * 12 + ageMonths) + " months " + ageDays + " days\n- " + totalWeeks + " weeks " +
        weeksDays + " days\n- " + totalDays + " days\n- " + totalHours + " hours\n- " + totalMinutes +
        " minutes\n- " + totalSeconds + " seconds";

    Bot.sendMessage(
        "β€’ Calculated Information:\n\n" +
        "- Age: " + ageYears + " years\n" +
        "- Age on: " + today.toLocaleDateString('en-US', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }) + "\n" +
        "- Born on: " + dob.toLocaleDateString('en-US', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }) + "\n\n" +
        "β€’ Actual age in different time units:\n" +
        "- " + ageInDifferentTimeUnits + "\n\n" +
        "β€’ Upcoming birthday: " + daysUntilNextBirthday + " days left\n- " +
        nextBirthday.toLocaleDateString('en-US', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' })
    );
}

calculateDetailedAge(message);

πŸ‘¨πŸ»β€πŸ’» Posted by @BotVerseRavi


πŸ“’ Share this channel with your friends and remember to give credit if you use it on your channel!
❀1πŸ”₯1🀩1
🫢🏻 Delete URL From Group (Only For Group) [Bots Business Code]
❓ Delete Message If it's contain any URL.


❀ Command: *

πŸ” BJS:
// Posted by @BotVerseRavi on Telegram
if (chat.chat_type != "private") {
const admin_id = [8055384069, 7500269454] //admin telegram 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
}

βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–
πŸ‘¨πŸ»β€πŸ’» 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
Automatic Deletion of Group Join and Leave Notifications [BJS]


❀ Command: *

πŸ” BJS:
// Posted by @BotVerseRavi on Telegram
if(chat.chat_type!="private"){
let new_members = request.new_chat_members;

if(new_members.length > 0){
Api.deleteMessage({chat_id:request.chat_id, message_id: request.message_id})
}

let left_members = request.left_chat_member;

if(left_members != null){
Api.deleteMessage({chat_id:request.chat_id, message_id: request.message_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
ytdownloader.txt
3.6 KB
🎡 YouTube MP3 Downloader [TPY Code]


πŸ”§ Command: *

πŸ“‚ Paste the code from the .txt file into your Wildcard Command section to activate.

βœ… Easily download MP3 audio from YouTube links using this tool.
πŸš€ Fast | 🎧 High-Quality | πŸ”’ Safe

βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–
πŸ‘¨πŸ»β€πŸ’» 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🀝1
⭐ Telegram Star Payment Accept & Refund [BJS]


Command: /purchase
// Posted by @BotVerseRavi on Telegram
Api.sendInvoice({
chat_id: user.telegramid, //chat id to send invoice at
title: "Product",
//add a product name
description: "This is a Digital Product",
//add a description of your product here
payload: "payload",
//add a payload, which you want after successful of payment. for example order id...
currency: "XTR", //for telegram stars
provider_token: "", //empty string for telegram stars
//protect_content: true,
//uncomment if you don't want forwarding post
start_parameter: "star",
//if the invoice messgae is forwarded, in place of Pay button it will show a deep link to your bot with this parameter
prices: [
{
label: "test", //add a label
amount: 1 //Amount of Telegram Stars
}
],
reply_markup: {
inline_keyboard: [[{ text: "Buy for ⭐️ 1", pay: true }]]
//the first star emoji in text of pay button of keyboard will be converted to Telegram star icon
}
})


Command: *
(Master Command)

// Posted by @BotVerseRavi on Telegram
let update = request

try { update = JSON.parse(request) } catch (e) {}

if (update.pre_checkout_query) {
//check for pre checkout query update and answer it to let the user complete payment

Api.answerPreCheckoutQuery({
pre_checkout_query_id: update.pre_checkout_query.id,
ok: true //false if need to cancel payment when uses confirms to pay
//error: 'error message in human readable form'
//^ required if ok is set to false
})

//Here is inspected update.pre_checkout_query for other details:
//{
// "id": "32802642947578352877",
// "from": {
// "id": 1234567890,
// "is_bot": false,
// "first_name": "Unknown",
// "username": "none",
// "language_code": "en",
// "is_premium": true
// },
// "currency": "XTR",
// "total_amount": 1,
// "invoice_payload": "payload like order id"
//}

//Note: here update is received with pre_checkout_query field


} else if (update.successful_payment) {
//check for a received payment and respond accordingly

Bot.sendMessage(
`Payment of ⭐️${update.successful_payment.total_amount} is successful`
)

//Here is inspected update.successful_payment for other details:
//{
// "currency": "XTR",
// "total_amount": 1,
// "invoice_payload": "payload like order id",
// "shipping_option_id": null,
// "order_info": null,
// "telegram_payment_charge_id": "charge id",
// "provider_payment_charge_id": "1234567890_12"
//}

//Note: here update is received with message field, so you can can user,chat details with request.from/request.chat etc...
//refer to message field at https://core.telegram.org/bots/api#message
}


Command: /refund
// Posted by @BotVerseRavi on Telegram
var chargeId = 'charge ID'//telegram payment charge id, to send a refund
//this is provide through successful_payment parameter of message update

var userId = β€˜user telegram id’ //telegram id of user who made the star payment

API.call(β€˜refundStarPayment’,{
user_id: userId,
telegram_payment_charge_id: chargeId
})
API.sendMessage({
user_id: userId,
text:’We are refunding your Star Payment’
})


βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–
πŸ‘¨πŸ»β€πŸ’» Posted by @BotVerseRavi


πŸ“’ Share this channel with your friends and remember to give credit if you use it on your channel!
πŸ”₯3❀2πŸ‘Œ1
Media is too big
VIEW IN TELEGRAM
πŸš€ Build Your Own WhatsApp Chatbot & Earn!


Want to run a WhatsApp bot for marketing without paying monthly tools?

All you need is:
βœ… A domain
βœ… Web hosting
βœ… WhatsJets SaaS PHP Script

Set it up once β†’ use it forever.

Script Link: Click here

βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–
πŸ‘¨πŸ»β€πŸ’» Posted by @BotVerseRavi


πŸ“’ Share this channel with your friends and remember to give credit if you use it on your channel!
πŸ”₯3🀩2❀1
Forwarded from BotVerse by Ravi
πŸ†• Introducing Our Instagram Reel Download API!
Powered by @BotVerseRavi


πŸ“₯ Easily download Instagram Reels via a simple API call. Whether you're a developer building a bot, app, or automation tool β€” this free public API is for you.

πŸš€ API Endpoint:

https://instagram-api-botverseravi.gt.tc/api.php/?url=<INSTAGRAM_REEL_URL>

πŸ“Œ Example:

https://instagram-api-botverseravi.gt.tc/api.php/?url=https://www.instagram.com/reel/DKuM_oLvhQm/?igsh=cTIybHNrdTFqdG5y

πŸ”— Docs & Live Preview:

https://instagram-api-botverseravi.gt.tc

πŸ‘¨β€πŸ’» Developer: @Unknown_RK01
🌐 Channel: @BotVerseRavi
πŸ› οΈ Support: @BotVerseRaviSupport

πŸ“œ Terms of Use | Privacy Policy
πŸ”₯4❀2
Hey everyone! πŸ‘‹

You can now contact us anytime via @BotVerseRavi_bot for instant basic info and FAQs.

Is your Telegram account restricted from messaging non-contacts?

No worries! Using the bot solves that issueβ€”no restrictions, no hassle.

What you’ll get when you use the bot:

⦁ A separate FAQs button with answers to commonly asked questions by our developers and subscribers, so you can get quick help instantly.
⦁ A Contact button to reach out to us directly and get a response within 24 hoursβ€”especially if your questions are about bot deployment, programming, and related topics.

Try the bot now for smooth, fast support! πŸš€

🌐 Channel: @BotVerseRavi
πŸ› οΈ Support: @BotVerseRaviSupport
πŸ†˜ Support Bot: @BotVerseRavi_bot
❀1πŸ‘1πŸ”₯1πŸ₯°1πŸ™1πŸ‘Œ1
How to transfer a Telegram bot to another TeleBot Creator account [TPY Script]


ℹ️ Command: /sendBot

# Posted by @BotVerseRavi on Telegram

if options == None:
bot.sendMessage("πŸ“§ <b>Enter Your Telebotcreator.com Email Address:</b>",parse_mode="html")
Bot.handleNextCommand("/sendBot",True)
else:
try:
Bot.Transfer(email=message.text,bot_id=Bot.info().bot_id)
bot.sendMessage(f"βœ… <b>Bot Sent!\n\nπŸ“§ To Email:</b> <code>{message.text}</code>",parse_mode="html")
except:
bot.sendMessage("β›” <b>Error! This Email not exist on server.</b>",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πŸ”₯2πŸ‘1πŸ‘1🀩1
✨ TBC Advanced Ping πŸ“ Tester (TPY)✨


Command: /ping

# Posted by @BotVerseRavi on Telegram
start_time = time.time()

ping_message = bot.replyText(
chat_id=message.chat.id,
text=" Pinging... "
)

latency_ms = round((time.time() - start_time) * 1000)

if latency_ms <= 200:
quality_text = "🟒 Excellent"
elif latency_ms <= 400:
quality_text = "🟑 Good"
elif latency_ms <= 700:
quality_text = "🟠 Fair"
else:
quality_text = "πŸ”΄ Poor"

final_text = (
f"οΌ°ο½ο½Žο½‡ πŸ“\n\n"
f"⚑ <b>Response Time</b>\n"
f"β”œ πŸ“Š <b>Latency:</b> <code>{latency_ms} ms</code>\n"
f"β”” 🎯 <b>Quality:</b> {quality_text}\n\n"
f"πŸ€– <b>Bot Status:</b> Online & Responsive"
)

bot.editMessage_text(
text=final_text,
chat_id=message.chat.id,
message_id=ping_message.message_id,
parse_mode="HTML"
)

βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–
πŸ‘¨πŸ»β€πŸ’» Posted by @BotVerseRavi


πŸ“’ Share this channel with your friends and remember to give credit if you use it on your channel!
πŸ”₯3❀2πŸ‘1πŸ€—1
⚠️ Attention β€” Please Read Carefully!


Anyone who leaves this channel even once will be automatically banned by our auto-kicker bot. Rejoining after that won’t be possible.

So, please think twice before leaving. For any questions, contact the admin.

Thanks for understanding! 😊

Support Group: @BotVerseRaviSupport
Support Bot: @BotVerseRavi_bot
🀝2❀1πŸ‘1πŸ”₯1😒1
πŸ“ Multiple File Sharing Telegram Bot [TPY Code Script]


Part 1


❀️‍πŸ”₯ Command: /start 
πŸ” TPY:
# Posted by @BotVerseRavi on Telegram

if not params or params == "None":
bot.sendMessage(
text=(
"<b>πŸ“€ Welcome to Multi File Sharing Bot!</b>\n\n"
"With this bot, you can:\n"
"β€’ Upload <b>multiple photos, videos, documents, stickers, audios, voices, animations</b>.\n"
"β€’ Get a <b>unique shareable link</b> for your uploaded files.\n"
"β€’ Share that link anywhere, and anyone can open it to view/download your files.\n\n"
"⚑ <b>How to use:</b>\n"
"1. Type <code>/upload</code> to start an upload session.\n"
"2. Send all your media files one by one.\n"
"3. When finished, type βœ… to confirm upload.\n"
"4. You will get a shareable link to your uploaded files.\n\n"
"⏳ Files shared in chat are <b>auto-deleted after 10 minutes</b> to prevent spam.\n"
"But don’t worry β€” you can always restore them using the shareable link.\n\n"
"πŸš€ Start sharing your files now!"
),
parse_mode="html",
reply_markup={
"inline_keyboard": [[
{"text": "πŸ“€ Start Uploading", "callback_data": "/upload"}
]]
}
)
else:
media_id = params
files = Bot.getData(media_id)

if not files:
bot.sendMessage("❌ No media found for this link.")
else:
sent_msgs = [] # store message IDs for later deletion

# Send all media
for f in files:
m = None
if f["type"] == "photo":
m = bot.sendPhoto(f["file_id"], caption=f.get("caption", ""))
elif f["type"] == "video":
m = bot.sendVideo(f["file_id"], caption=f.get("caption", ""))
elif f["type"] == "audio":
m = bot.sendAudio(f["file_id"])
elif f["type"] == "voice":
m = bot.sendVoice(f["file_id"])
elif f["type"] == "document":
m = bot.sendDocument(f["file_id"])
elif f["type"] == "animation":
m = bot.sendAnimation(f["file_id"])
elif f["type"] == "sticker":
m = bot.sendSticker(f["file_id"])

if m and "message_id" in m:
sent_msgs.append(m["message_id"])

# Final note
note = bot.sendMessage(
"⚠️ <b>Note:</b> Files will be automatically deleted from chat after <b>10 minutes</b> to prevent spam.",
parse_mode="html",
reply_markup={
"inline_keyboard": [[
{"text": "πŸ”— Join Channel", "url": "t.me/BotVerseRavi"}
]]
}
)
if "message_id" in note:
sent_msgs.append(note["message_id"])

# Schedule deletion of messages only
Bot.runCommandAfter(
600,
"/delete_messages",
options={"user_id": message.chat.id, "message_ids": sent_msgs, "media_id": media_id}
)


❀️‍πŸ”₯ Command: /upload
πŸ” TPY:
# /upload command
# Posted by @BotVerseRavi on Telegram

keyboard = ReplyKeyboardMarkup(True)
keyboard.row("βœ…")
media_id = Bot.genId() # generate a unique ID
bot.sendMessage(chat_id=message.chat.id, text="πŸ‘‰ Send me the text you want to upload. When you are done.",reply_markup = keyboard)
Bot.handleNextCommand("/handle_media", options={"media_id": media_id, "files": []}) # initialize files as an empty list
❀1πŸ”₯1πŸ₯°1🀩1πŸ†1
Part 2


# Posted by @BotVerseRavi on Telegram
media_id = options.get("media_id")
files = options.get("files", [])
keyboard = ReplyKeyboardRemove()

if message.text == "βœ…":
# Confirmation Logic
if files:
shareable_link = f"https://t.me/{Bot.info().username}?start={media_id}"

bot.sendMessage(
chat_id=message.chat.id,
text=f"βœ… Upload complete!\nShare this link:\n{shareable_link}",
reply_markup=keyboard
)
Bot.saveData(media_id, files) # Save to DB
else:
bot.sendMessage(chat_id=message.chat.id, text="❌ No media was uploaded.")

else:
media_entry = None

if message.photo:
media_entry = {"type": "photo", "file_id": message.photo[-1]["file_id"], "caption": message.caption or ""}
elif message.video:
media_entry = {"type": "video", "file_id": message.video["file_id"], "caption": message.caption or ""}
elif message.audio:
media_entry = {"type": "audio", "file_id": message.audio["file_id"]}
elif message.voice:
media_entry = {"type": "voice", "file_id": message.voice["file_id"]}
elif message.document:
media_entry = {"type": "document", "file_id": message.document["file_id"]}
elif message.animation:
media_entry = {"type": "animation", "file_id": message.animation["file_id"]}
elif message.sticker:
media_entry = {"type": "sticker", "file_id": message.sticker["file_id"]}

if media_entry:
files.append(media_entry)
bot.sendMessage(chat_id=message.chat.id, text="βœ… Media saved. Send more or type βœ… to finish.")
else:
bot.sendMessage(chat_id=message.chat.id, text="❌ Unsupported input. Please send media files only.")

# Loop until user confirms
Bot.handleNextCommand("/handle_media", options={"media_id": media_id, "files": files})

❀️‍πŸ”₯ Command: /delete_messages
πŸ” TPY:
# Posted by @BotVerseRavi on Telegram
user_id = options.get("user_id")
msg_ids = options.get("message_ids", [])
media_id = options.get("media_id")

# Delete all sent messages
for mid in msg_ids:
try:
bot.deleteMessage(chat_id=user_id, message_id=mid)
except Exception:
pass

# Notify user with restore option
Bot.sendMessage(
chat_id=user_id,
text="πŸ—‘οΈ Your files have been deleted from chat after 10 minutes.\nClick below to restore them.",
reply_markup={
"inline_keyboard": [[
{"text": "πŸ”„ Restore Files", "url": f"https://t.me/{Bot.info().username}?start={media_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πŸ€—1