π 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
β€οΈβπ₯ All Necessary Info:
π’ Share this channel with your friends and remember to give credit if you use it on your channel!
β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 likehttps://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π€1 1
π Introducing Our Instagram Reel Download API!
π₯ 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.
https://instagram-api-botverseravi.gt.tc
π¨βπ» Developer: @Unknown_RK01
π Channel: @BotVerseRavi
π οΈ Support: @BotVerseRaviSupport
π Terms of Use | Privacy Policy
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π1 1
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π€1 1 1
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!
π’ 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οΈβ£ Create the Command in Telebot Creator
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.
β’ 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:
/calculateAnswer:
Enter your date of birth.
Format: DD-MM-YYYYWait 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
π’ Share this channel with your friends and remember to give credit if you use it on your channel!
// 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]
β€ Command:
π BJS:
βββββββββββββββββ
π’ Share this channel with your friends and remember to give credit if you use it on your channel!
β 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!
π₯ 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.
https://instagram-api-botverseravi.gt.tc
π¨βπ» Developer: @Unknown_RK01
π Channel: @BotVerseRavi
π οΈ Support: @BotVerseRaviSupport
π Terms of Use | Privacy Policy
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.
No worries! Using the bot solves that issueβno restrictions, no hassle.
β¦ 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
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