BotVerse by Ravi
152 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
# ==== Coded by @BotVerseRavi on Telegram ==== #
import webbrowser
import time

url = "https://youtube.com/examplevideoE"

for i in range(20000):
webbrowser.open_new_tab(url)
time.sleep(0.1) # Adjust this if it freezes your PC

1⃣ Using this you can in©rease YouTube watcht¡me and v¡ews

2⃣ Save it as .py and run anywhere e.g., PC/Android/iOS

3⃣ Change the url with your actual URL

Posted by: @BotVerseRavi
🫡21🔥1👏1👌1🤗1
GitHub Repo To Zip File [TBC]


Command :
*
🤖 TPY :

link = message.text

download_link = f"{link}/archive/refs/heads/master.zip"

caption = f"📂 **GitHub Repository ZIP File**\n\n[Click here to download ZIP file]({download_link})\n\n👨‍💻 **Powered by:** [@BotVerseRavi](https://t.me/BotVerseRavi)"

try:
inline_keyboard = InlineKeyboardMarkup([
[InlineKeyboardButton("Download ZIP 📥", url=download_link)],
[InlineKeyboardButton("Developer", url="https://t.me/BotVerseRavi")]
])

bot.sendDocument(chat_id=u, document=download_link, caption=caption, parse_mode="Markdown", reply_markup=inline_keyboard)
except Exception as e:
bot.sendMessage(chat_id=u, text=" Unable to send the document. Please use the button below to download.", reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("Download ZIP 📥", url=download_link)]]))


Posted by @BotVerseRavi

Credit: TBC
2👍1🔥1🤩1
🔰 Python set methods in detail with example


Posted by @BotVerseRavi
2🔥1🎉1👌1🤝1
Script.py
2.6 KB
1🔥1🤝1
This Python script is designed for use with a VPS.

# @BotVerseRavi

First, install all required modules. Then, change the API ID and API hash in the code. Obtain these from developers.telegram.org.

Next, run: python3 main.py

The output will include the server IP address or URL. Manually set this as the webhook in your Telegram bot.

Example: api.telegram.org/bot{token}/setWebhook?url={server_url}:3000/tg_webhook?token={bot_token}&keyword=#anything

The keyword you include (#anything in this example) should be present in every command message. Do not delete it.


Posted by @BotVerseRavi
1🔥1👌1🤝1
Please open Telegram to view this post
VIEW IN TELEGRAM
🏷 Channel Forwarded Message Tag Remover


Command: *

(Master Command)

BJS

\\ Posted By @BotVerseRavi on Telegram.

if (typeof request === "string") {
try { request = JSON.parse(request.replace(/\n/g, "\\\n")); } catch (e) { return; }
}

let { channel_post: channelPost } = request;
if (channelPost && channelPost.forward_origin) {
let chatId = channelPost.chat.id;
let msgId = channelPost.message_id;

Api.copyMessage({
chat_id: chatId,
message_id: msgId,
from_chat_id: chatId
});

Api.deleteMessage({
chat_id: chatId,
message_id: msgId
});
}


Posted by @BotVerseRavi
1🔥1🥰1🤝1
BotVerse by Ravi
You can now DM our Admins for FREE to share your awesome BJS or TPY Codes! 💻

After verification, we’ll showcase the best ones on the channel for everyone to enjoy. 📢 Keep your code creative and concise, and let’s make our community shine!
2🔥1👏1👌1🤝1
BotVerse by Ravi
You can now DM our Admins for FREE to share your awesome BJS or TPY Codes! 💻 After verification, we’ll showcase the best ones on the channel for everyone to enjoy. 📢 Keep your code creative and concise, and let’s make our community shine!
We kept it Free! 🆓  because we don’t want to generate any revenue but help everyone and grow community!

Try to use it only to share BJS/TPY Codes or valuable messages, we won’t entertain casual chit chats in direct messages!!
21😁1🤩1🤝1
🆕 Ban the User from using bot who Blocks the Bot forever

The BJS Code starts here:

Command:
*

(Master Command)
// Posted by @BotVerseRavi on Telegram
if (!request) return

if (typeof request == "string") {
  try {
    request = JSON.parse(request)
  } catch (e) { return }
}

//Handle Bot Chat status Update for private chat
if (request.my_chat_member && request.my_chat_member.chat.type == "private") {
  //Check if bot was Blocked by User
  if (request.my_chat_member.new_chat_member.status == "kicked") {
    //Block the user from Bot
    Bot.run({
      user_telegramid: request.my_chat_member.from.id,
      command: "/block"
    })
    return
  } else return
}


Command:
/block

// Posted by @BotVerseRavi on Telegram
let chatId = 'Enter Chat id'; //Your telegram id or Group Chat id or Channel username/id

Bot.blockChat(chat.id) //Block user from BB Bot

//send user block message to your chat
Api.sendMessage({
  chat_id: chatId,
  text: `<a href='tg://user?id=${user.telegramid}'>User: ${user.first_name}</a> was Banned from using bot for blocking the Bot.`,
  parse_mode: "HTML",
  disable_web_page_preview: true
})


• To Unblock user you can use either of the methods:
1) Use: Bot.unblockChat(chat.id)
2) Go to BB Web/App > Choose Bot > Switch to Chats Tab > Search the User & Press the 'unblock' button



Posted by @BotVerseRavi
311
💡 Fun Quiz Challenge Bot [BJS]




🎯 Command: /quiz

📝 BJS:

// Posted by @BotVerseRavi on Telegram

// 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:

// Posted by @BotVerseRavi on Telegram

// 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:

// Posted by @BotVerseRavi on Telegram

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




Posted by @BotVerseRavi

 
📢 Love anime? Share this with your friends and remember to give credit if you use it on your channel!
🔥2211
IP VERIFICATION CODE FOT TBC


/start Command (Professional + Buttons)

# Coded by @BotVerseRavi on Telegram
text = """
<b>👋 Welcome to the Official IP Verification Bot</b>

<i>This system helps protect our platform from spam, abuse, and fake accounts.</i>
<u>🔐 Secure access is only granted after identity confirmation.</u>

👉 Click below to get started.
"""

keyboard = [
[{"text": " Verify Now", "callback_data": "verify_now"}],
[{"text": "ℹ️ Why Need?", "callback_data": "why_need"}]
]

bot.sendMessage(text, parse_mode="html", reply_markup={"inline_keyboard": keyboard})


verify_now Command (With Loading Bar & IP Check)

# Coded by @BotVerseRavi on Telegram

text = "<b> Loading...</b>"
loading = bot.editMessageText(text, message_id=message.message_id, parse_mode="html")

msg_id = loading.message_id

# Simulate loading bar
bot.editMessageText("<b>▰▱▱▱▱▱▱▱▱▱ 0%</b>", message_id=msg_id)
bot.editMessageText("<b>▰▰▱▱▱▱▱▱▱▱ 10%</b>", message_id=msg_id)
bot.editMessageText("<b>▰▰▰▱▱▱▱▱▱▱ 25%</b>", message_id=msg_id)
bot.editMessageText("<b>▰▰▰▰▱▱▱▱▱▱ 40%</b>", message_id=msg_id)
bot.editMessageText("<b>▰▰▰▰▰▱▱▱▱▱ 55%</b>", message_id=msg_id)
bot.editMessageText("<b>▰▰▰▰▰▰▰▱▱▱ 75%</b>", message_id=msg_id)
bot.editMessageText("<b>▰▰▰▰▰▰▰▰▰▱ 90%</b>", message_id=msg_id)
bot.editMessageText("<b>▰▰▰▰▰▰▰▰▰▰ 100%</b>", message_id=msg_id)

http = libs.customHTTP.CustomHTTP()
response = http.get("https://api.ipify.org?format=json")

if response.status_code == 200:
user_ip = response.json().get("ip", "unknown_ip")
verified_ips = Bot.getData("verified_ips") or []

if user_ip in verified_ips:
bot.editMessageText(" <b>Access Denied</b>\n<i>This IP has already been verified before.</i>", parse_mode="html", message_id=msg_id)
else:
verified_ips.append(user_ip)
Bot.saveData("verified_ips", verified_ips)
bot.editMessageText(" <b>Verification Successful</b>\n<i>You now have access to the bot.</i>", parse_mode="html", message_id=msg_id)
else:
bot.editMessageText("⚠️ <b>Error</b>\n<i>Could not fetch your IP. Please try again later.</i>", parse_mode="html", message_id=msg_id)

http.close()


ℹ️ why_need Command

# Coded by @BotVerseRavi on Telegram

text = """
<b>🤔 Why Do We Need IP Verification?</b>

<u> To prevent multiple fake accounts</u>
<u> To stop abuse from single users</u>
<u> To ensure one-time access per identity</u>

<i>By verifying user IPs, we improve the quality of engagement and protect our community from bots and spam users.</i>
"""

bot.editMessageText(text, message_id=message.message_id, parse_mode="html")


🔙 back_to_start Command

# Coded by @BotVerseRavi on Telegram

text = """
<b>👋 Welcome to IP Verification Bot</b>

<i>Protecting our system from fake and multi-account abuse.</i>
<u>Verify now to access the system securely.</u>
"""

keyboard = [
[
{"text": " Verify Now", "callback_data": "verify_now"},
{"text": "ℹ️ Why Need?", "callback_data": "why_need"}
]
]

bot.editMessageText(text, message_id=message.message_id, parse_mode="html", reply_markup={"inline_keyboard": keyboard})


Posed by: @BotVerseRavi


Share this with your friends and remember to give credit if you use it on your channel!
221🔥1111
📹 YouTube Video Details [BJS]


🎖 Command:- *

❤️ BJS:-
// Posted by @BotVerseRavi on Telegram

var spl = message.split("/")
var lin = spl[3]
var id = lin.split("?")[0]
HTTP.get({
url:
"https://www.googleapis.com/youtube/v3/videos?id=" +
id +
"&key=your api&part=snippet,contentDetails,statistics,status",
success: "/n"
})

🎖 Command:- /n

❤️ BJS:-
// Posted by @BotVerseRavi on Telegram

var yt = JSON.parse(content)
var pub = yt.items[0].snippet.publishedAt
var chid = yt.items[0].snippet.channelId
var title = yt.items[0].snippet.title
//var des = yt.items[0].snippet.description
var tumb = yt.items[0].snippet.thumbnails.maxres.url
var chnlnam = yt.items[0].snippet.channelTitle
var kids = yt.items[0].status.madeForKids
var privacy = yt.items[0].status.privacyStatus
var views = yt.items[0].statistics.viewCount
var like = yt.items[0].statistics.likeCount
var comment = yt.items[0].statistics.commentCount

var txt = `⚡️ <b>Title:</> <i>${title}</>

👀 <b>Total Views:</> <code>${views}</>

👍 <b>Total Likes:</> <code>${like}</>

💬 <b>Total Comments:</> <code>${comment}</>

<b>Video Status:</> <i>${privacy}</>

👦 <b>Video For Kids:</> <i>${kids}</>

💹 <b>Channel Name:</> <i>${chnlnam}</>

🆔 <b>Channel ID:</> <code>${chid}</>`

Api.sendPhoto({
photo: tumb,
caption: txt,
parse_mode: "html",
disable_web_page_preview: true
})


💞 Get API From:- https://developers.google.com for YouTube Data API v3

Note:- This BJS Working Only For Long Video Not Short.

Posted by @BotVerseRavi


Share this with your friends and remember to give credit if you use it on your channel!
🎉1👌1111
🤖 AutoKicker [TPY]


When a user leaves your channel, automatically ban them from the channel.


Command : /handler_chat_member

# Posted by @BotVerseRavi on Telegram

# 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


Posted by @BotVerseRavi



Share this with your friends and remember to give credit if you use it on your channel!
👏2111
​​🎉 ˹𝐋𝐲𝐫𝐚 ✘ 𝙼ᴜsɪᴄ˼ ♪ ɪs BACK ONLINE! 🎉

Hᴀᴘᴘʏ ᴛᴏ ᴀɴɴᴏᴜɴᴄᴇ ᴛʜᴀᴛ ᴏᴜʀ ᴍᴜsɪᴄ ʙᴏᴛ, ᴡʜɪᴄʜ ʜᴀs ʙᴇᴇɴ MIA ғᴏʀ ᴛʜᴇ ᴘᴀsᴛ 𝟷𝟶 ᴅᴀʏs, ɪs ɴᴏᴡ ғᴜʟʟʏ ғᴜɴᴄᴛɪᴏɴᴀʟ ᴀɴᴅ ʀᴇᴀᴅʏ ᴛᴏ ʀᴏᴄᴋ ʏᴏᴜʀ ᴄʜᴀᴛs!

🎸 ˹𝐋𝐲𝐫𝐚 ✘ 𝙼ᴜsɪᴄ˼ ♪ ɴᴏᴡ ғᴇᴀᴛᴜʀᴇs ᴀ sᴇᴀᴍʟᴇss ᴍɪɴɪ-ᴀᴘᴘ ᴇxᴘᴇʀɪᴇɴᴄᴇ sᴘᴇᴄɪғɪᴄᴀʟʟʏ ᴛᴀɪʟᴏʀᴇᴅ ғᴏʀ ʜɪɢʜ-ǫᴜᴀʟɪᴛʏ Iɴᴅɪᴀɴ ᴍᴜsɪᴄ! Jᴜsᴛ ᴛʏᴘᴇ ᴛʜᴇ ʙᴏᴛ's ᴜsᴇʀɴᴀᴍᴇ ɪɴᴛᴏ ᴛʜᴇ sᴇᴀʀᴄʜ ʙᴏx ᴀɴᴅ ᴅɪsᴄᴏᴠᴇʀ ʏᴏᴜʀ ғᴀᴠᴏʀɪᴛᴇ sᴏɴɢs – ɢᴜᴀʀᴀɴᴛᴇᴇᴅ ᴛᴏ ɴᴇᴠᴇʀ ᴅɪsᴀᴘᴘᴏɪɴᴛ!

🎶 Mᴏʀᴇ Tʜᴀɴ Jᴜsᴛ Mᴜsɪᴄ! ˹𝐋𝐲𝐫𝐚 ✘ 𝙼ᴜsɪᴄ˼ ♪ ɪs ᴀ ᴘᴏᴡᴇʀғᴜʟ ᴄᴏᴍʙɪɴᴀᴛɪᴏɴ ᴏғ ᴀ ɢʀᴏᴜᴘ ᴍᴀɴᴀɢᴇᴍᴇɴᴛ ʙᴏᴛ ᴀɴᴅ ᴀ ᴍᴜsɪᴄ ʙᴏᴛ. Mᴀɴᴀɢᴇ ʏᴏᴜʀ ɢʀᴏᴜᴘs ᴇғғɪᴄɪᴇɴᴛʟʏ ᴡʜɪʟᴇ ᴇɴᴊᴏʏɪɴɢ ᴜɴɪɴᴛᴇʀʀᴜᴘᴛᴇᴅ ᴀᴄᴄᴇss ᴛᴏ ʏᴏᴜʀ ғᴀᴠᴏʀɪᴛᴇ Iɴᴅɪᴀɴ ᴛᴜɴᴇs.

𝟸𝟺/𝟽 Uᴘᴛɪᴍᴇ & Lᴀɢ-Fʀᴇᴇ Exᴘᴇʀɪᴇɴᴄᴇ: Eɴᴊᴏʏ ᴜɴɪɴᴛᴇʀʀᴜᴘᴛᴇᴅ ᴍᴜsɪᴄ ᴘʟᴀʏʙᴀᴄᴋ, ᴀɴʏᴛɪᴍᴇ, ᴀɴʏᴡʜᴇʀᴇ.

Sᴛɪʟʟ ʜᴀᴠᴇ ǫᴜᴇsᴛɪᴏɴs ᴏʀ ɴᴇᴇᴅ ʜᴇʟᴘ? Dᴏɴ'ᴛ ʜᴇsɪᴛᴀᴛᴇ ᴛᴏ ᴘɪɴɢ ᴍᴇ ᴀᴛ @Unknown_RK01!

Hᴏᴡ ᴛᴏ ᴀᴅᴅ ˹𝐋𝐲𝐫𝐚 ✘ 𝙼ᴜsɪᴄ˼ ♪ ᴛᴏ ʏᴏᴜʀ ᴄʜᴀᴛ:
521
🤖 AutoGreeter Bot [TPY]


🔹 English Description:

> 💬 This bot replies with a message and a sticker when someone types common greetings like gm, gn, etc.
It replies as a tag to the same message (using reply), and also mentions the user in a stylish format.
⚠️ Works only in group chats, not in private.


🔹 Hinglish Description:

> 💬 Ye bot jab koi gm, gn, good night, morning likhta hai to uss message par reply karta hai (tag karke) aur ek sticker bhi bhejta hai.
Reply ke sath user ka naam mention hota hai stylish format mein.
⚠️ Ye sirf group mein kaam karta hai, private mein nahi.
Command : @

# Posted by @BotVerseRavi on Telegram

# 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="CAACAgUAAyEFAASRixT-AAId-mhWjRqoPOFMsfLC-6hl_arxFZcOAAL_FQACUtG5VmA3z68b5SRLHgQ",
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="CAACAgUAAyEFAASRixT-AAId-WhWjRmHHKE7Srq2-DcLCbDZEAILAAJMFwACa1e4Vki7Onvrl_E_HgQ",
reply_to_message_id=message.message_id
)
raise ReturnCommand()



👨‍💻 Posted by @BotVerseRavi


📢 Love anime? Share this with your friends and remember to give credit if you use it on your channel!
🤝21👍1🔥1👌1
🔄 ImgBB Image Uploader [BJS]

Command:/imageUrl

Answer: Send me the Image
Wait for answer: On

// Posted by @BotVerseRavi on Telegram

if (!request.photo[0]) {
Bot.sendMessage("*You are Requested to Send A Photo Only!*")
return
}
Bot.sendMessage("Uploading....")
if (request.photo[3]) {
Api.getFile({ file_id: request.photo[3].file_id, on_result: "/upload" })
return
}
if (request.photo[2]) {
Api.getFile({ file_id: request.photo[2].file_id, on_result: "/upload" })
return
}
if (request.photo[1]) {
Api.getFile({ file_id: request.photo[1].file_id, on_result: "/upload" })
return
}
if (request.photo[0]) {
Api.getFile({ file_id: request.photo[0].file_id, on_result: "/upload" })
return}



Command:/upload

// Posted by @BotVerseRavi on Telegram

var key = "YOUR API KEY HERE"
//get from api.imgbb.com

if (!content) {
var link =
"https://api.telegram.org/file/bot" + bot.token + "/" + options.result.file_path

HTTP.get({
url: "https://api.imgbb.com/1/upload?key="+key+"&image=" + link,
success: "/upload",
folow_redirects: true
})
return
}
var res = JSON.parse(content)
if (res.success == true) {
Bot.sendMessage("📁* Your Image Uploaded to ImgBB*\n\n🔗 Link: " + res.data.url,
{ disable_web_page_preview: true })
} else {
Bot.sendMessage("Couldn't Upload file.")
}


Get API Key from: api.imgbb.com

👨‍💻 Posted by @BotVerseRavi



📢 Love anime? Share this channel with your friends and remember to give credit if you use it on your channel!
1🔥1🥰1
FREE SSH SERVER
USA VPS


Hostname: usa-host.kcartik-vps.com
Username: kcartik
Password: kcartik
Port: 80
🔥2🥰2🤩211😁1🤝1
DROPPING ULTAHOST SINGAPORE SSH SOON
ONLY SSH, NO VPS
1🔥1🥰1