BotVerse by Ravi
158 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
One Year of BotVerse – Dropping Code Wisdom!

Hey everyone,
A whole year since we started this channel to pass on simple programming tips and tricks. We've thrown out over 250+ posts on stuff like Python basics, API setups, debugging headaches, and cool project ideas, and it's been great seeing you all jump in with questions and shares. Shoutout to the whole crew for making it happen; you rock.

Year 2’s got more easy guides and fun challenges coming. If these tips have clicked for you, do me a solid and share the channel with your friends—let's spread the knowledge!

What's one simple code ha©k you've grabbed from here? Hit reply below! 💻

Thanks for your support!
6🙏2🫡1
Phone Number Information Extraction 🤖 [TBC Code]

Command : /info
Usage : /info 9161570798

# Posted by @BotVerseRavi on Telegram.
try:
args = msg.split(" ", 1)
if len(args) != 2:
bot.sendMessage(" Usage: /info <number>\n\nExample: /info 8373838566")
raise ReturnCommand()

number = args[1].strip()

# 🌐 API Request
api_url = "https://jsr-number-info.onrender.com/lookup"
headers = {"Content-Type": "application/json"}
payload = {"number": number}

res = HTTP.post(api_url, json=payload, headers=headers, timeout=25)
data = res.json()

# Validate response
if not data.get("success") or not data.get("data", {}).get("success"):
bot.sendMessage(f" No details found for <b>{number}</b>", parse_mode="HTML")
raise ReturnCommand()

results = data["data"].get("result", [])
if not results:
bot.sendMessage(f"⚠️ No records found for <b>{number}</b>", parse_mode="HTML")
raise ReturnCommand()

# 🧾 Build output
output = f"📱 <b>Mobile Lookup Report</b>\n\n"
output += f"🔍 <b>Query:</b> <code>{number}</code>\n"
output += f" <b>Total Records:</b> {len(results)}\n\n"

for i, r in enumerate(results, 1):
name = r.get("name", "N/A")
father = r.get("father_name", "N/A")
mobile = r.get("mobile", "N/A")
alt = r.get("alt_mobile", "N/A")
circle = r.get("circle", "N/A")
uid = r.get("id_number", "N/A")
address = r.get("address", "N/A").replace("!", "\n").strip()
email = r.get("email", "N/A")

output += (
f"📄 <b>Result {i}</b>\n"
f"👤 <b>Name:</b> <code>{name}</code>\n"
f"👨‍👦 <b>Father:</b> <code>{father}</code>\n"
f"📞 <b>Mobile:</b> <code>{mobile}</code>\n"
f"📱 <b>Alt Mobile:</b> <code>{alt}</code>\n"
f"🆔 <b>ID Number:</b> <code>{uid}</code>\n"
f"🌍 <b>Circle:</b> <code>{circle}</code>\n"
f"🏠 <b>Address:</b>\n<code>{address}</code>\n"
f"📧 <b>Email:</b> <code>{email}</code>\n"
f"──────────────────────────────\n\n"
)

# Split if too long
if len(output) > 3500:
bot.sendMessage(output, parse_mode="HTML")
output = ""

output += "🔗 <i>Powered by</i> <b>@BotVerseRavi</b>"

bot.sendMessage(output, parse_mode="HTML")

except Exception as e:
bot.sendMessage("⚠️ Error occurred while fetching number info.", parse_mode="HTML")

Valid for Bharat only!

👨🏻‍💻 Posted by @BotVerseRavi


📢 Share this channel with your friends and remember to give credit if you use it on your channel!
3🔥1🎉1
🚀 Auto-Approve Telegram Join Requests: Python Bot Code + User Notifications [TBC Code]


Command : /handler_chat_join_request

Code :
# Posted by @BotVerseRavi on Telegram
# Approve the user's join request
bot.approveChatJoinRequest(chat_id=message.chat.id,
                           user_id=message.from_user.id)

# Set dynamic valuers
bot_username = Bot.info().username
start_link = "https://t.me/" + bot_username + "?start"
user_name = message.from_user.first_name if message.from_user and message.from_user.first_name else "User"
channel_name = message.chat.title if message.chat and message.chat.title else "Channel"
user_id = message.from_user.id

# Define the inline keyboard properly
keyboard = {
    "inline_keyboard": [
        [{"text": "🙋 Check I'm Alive!", "url": f"{start_link}"}]
    ]
}

# Send a welcome message
try:
    bot.sendMessage(
        chat_id=user_id,
        text=(
            f"🎉<b> Hey, Welcome to {channel_name}</b>!\n\n"
            f"🥰 <i>We’re glad to have</i> <b>{user_name}</b> <i>here. Stay tuned for awesome updates and content!</i>\n\n"
            f"<b>☑️ Tap button Below to Alive me!</b>"),
        message_effect_id="5046509860389126442",
        parse_mode="html",
        reply_markup=keyboard
    )
except Exception as e:
    bot.sendMessage(str(e))



👨🏻‍💻 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
🌟 AI Video Generator Bot

Gᴇɴᴇʀᴀᴛᴇ Aɪ Vɪᴅᴇᴏs -

🔮 Cᴏᴍᴍᴀɴᴅ: /vid
🌈 Bᴊꜱ Cᴏᴅᴇ:
let text = message.split(" ").slice(1).join(" ").trim();

//Posted on @BotVerseRavi

if (!text) {
return Bot.sendMessage(
"🎥 *AI Video Generator*\n\nPlease provide a prompt.\n\n*Usage:* /vid A dog dancing in rain\n*Example:* /vid Cyberpunk city at night",
{ parse_mode: "Markdown", reply_to_message_id: request.message_id }
);
}

let apiUrl = "https://yabes-api.pages.dev/api/ai/video/v1?prompt=" + encodeURIComponent(text);

HTTP.get({
url: apiUrl,
success: "/onVidGenerated",
error: "/onVidError"
});

Gᴇɴᴇʀᴀᴛᴇᴅ Vɪᴅᴇᴏ Rᴇᴘʟʏ -

🔮 Cᴏᴍᴍᴀɴᴅ: /onVidGenerated
🌈 Bᴊꜱ Cᴏᴅᴇ:
try {
let data = JSON.parse(content);

if (data && data.success && data.url) {
Api.sendVideo({
chat_id: chat.chatid,
video: data.url,
caption: "💖 Generated by: @BotVerseRavi 😌",
parse_mode: "Markdown",
reply_to_message_id: request.message_id
});
} else {
Bot.sendMessage(" Failed to generate video. Please try again later.", {
reply_to_message_id: request.message_id
});
}
} catch (err)
//Posted on @BotVerseRavi
{
Bot.sendMessage(" Error: " + err.message, {
reply_to_message_id: request.message_id
});
}

Eʀʀᴏʀ Hᴀɴᴅʟᴇʀ -

🔮 Cᴏᴍᴍᴀɴᴅ: /onVidError
🌈 Bᴊꜱ Cᴏᴅᴇ:
Bot.sendMessage(" Network Error! Please try again later.",
//Posted on @BotVerseRavi
{
reply_to_message_id: request.message_id
});



Exᴀᴍᴘʟᴇ Usᴇ - /vid Sunset over snowy mountains


👨🏻‍💻 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 Code Script: Easy Broadcast Automation 😎



Command: /forbroadcast
admins = ["1234567890"] # Replace it with your user ID
if str(u) not in admins:
    raise ReturnCommand()
# made by @BotVerseRavi
if options == None:
    bot.replyText(u, "<b>🎙️ Send Any Message To Forward Broadcast\n\nTo Cancel: /cancel</>")
    Bot.handleNextCommand("/forbroadcast", options=True)
    raise ReturnCommand()

else:
    if message.text == "/cancel":
        bot.sendMessage("<b> Cancelled</>")
        raise ReturnCommand()

    msg_id = message.message_id
    chat_id = message.chat.id

    code = f"bot.forwardMessage(chat_id=u, from_chat_id={chat_id}, message_id={msg_id})"

    url = libs.webhook.getUrlFor("/broadResult", u)
    task = Bot.broadcast(code=code, callback_url=url)
    Bot.saveData(task, None)
    bot.sendMessage("<b>🔁 Forward Broadcast Processing...</b>")
# made by @BotVerseRavi

2⃣ Command for Broadcast Status

Command : /broadResult
# made by @BotVerseRavi
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>")
# made by @BotVerseRavi



👨🏻‍💻 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
🔰 Generators in Python


👨🏻‍💻 Posted by @BotVerseRavi


📢 Share this channel with your friends and remember to give credit if you use it on your channel!
2🔥2🥰1
GITHUBSTUDENT50-M2QRIA


Free 50$ Atlas Credit!

Note: Someone else might have already taken this code, just try your luck.


👨🏻‍💻 Posted by @BotVerseRavi


📢 Share this channel with your friends and remember to give credit if you use it on your channel!
3🔥1
🔰 Convert decimals to other number system


👨🏻‍💻 Posted by @BotVerseRavi


📢 Share this channel with your friends and remember to give credit if you use it on your channel!
🤩21🔥1
🔰 5 different ways to swap two numbers in python


👨🏻‍💻 Posted by @BotVerseRavi


📢 Share this channel with your friends and remember to give credit if you use it on your channel!
🔥21🙏1
🚀 Introducing Arian AI: Revolutionize Your AI Experience! 🚀


Hello everyone! Dive into Arian AI, the innovative AI platform designed for seamless interactions, smart responses, and endless possibilities.

➡️ Explore it now at: https://arian-ai.42web.io

👨‍💻 Support Bot: @BotVerseRavi_bot
🌐 Channel: @BotVerseRavi
🛠️ Support Group: @BotVerseRaviSupport

📜 Check out our Terms of Use and Privacy Policy for more info.

Give it a spin and share your thoughts in the comments! 🤖
2🔥2😁1🤩1
Image Hosting Embed Code (TPY)


Command: *

# Made by @BotVerseRavi
if message.photo:
try:
bot.sendChatAction("upload_photo")

# Get photo
photo = message.photo[-1].file_id
file_info = bot.getFile(photo)
file_url = f"https://api.telegram.org/file/bot{Bot.info().token}/{file_info.file_path}"
# Made by @BotVerseRavi
# Upload to Catbox
response = HTTP.post(
"https://catbox.moe/user/api.php",
data={"reqtype": "urlupload", "url": file_url}
)

uploaded_url = response.text.strip()

if uploaded_url.startswith("http"):
# Send URL
# Made by @BotVerseRavi
bot.sendMessage(
chat_id=message.chat.id,
text=f" Uploaded!\n\n🔗 {uploaded_url}",
parse_mode="HTML",
reply_to_message_id=message.message_id
)
else:
bot.sendMessage(
chat_id=message.chat.id,
text=" Upload failed. Try again.",
reply_to_message_id=message.message_id
)

except:
# Generic error - no details shown
# Made by @BotVerseRavi
bot.sendMessage(
chat_id=message.chat.id,
text="⚠️ Upload error. Please try again.",
reply_to_message_id=message.message_id
)
# Made by @BotVerseRavi
raise ReturnCommand()


👨🏻‍💻 Posted by @BotVerseRavi


📢 Share this channel with your friends and remember to give credit if you use it on your channel!
4👍1👌1
Forwarded from BotVerse by Ravi
🚀 Introducing Arian AI: Revolutionize Your AI Experience! 🚀


Hello everyone! Dive into Arian AI, the innovative AI platform designed for seamless interactions, smart responses, and endless possibilities.

➡️ Explore it now at: https://arian-ai.42web.io

👨‍💻 Support Bot: @BotVerseRavi_bot
🌐 Channel: @BotVerseRavi
🛠️ Support Group: @BotVerseRaviSupport

📜 Check out our Terms of Use and Privacy Policy for more info.

Give it a spin and share your thoughts in the comments! 🤖
🎉21🔥1🥰1
🤖 Advanced Profile Insights [TPY Code]

Command : /info

 # Made by @BotVerseRavi
user = message.from_user
chat = message.chat
user_id = user.id
chat_id = chat.id

# Flags
is_private = chat.type == "private"
first_name = user.first_name or "No Name"
username = f"@{user.username}" if user.username else "None"
premium = "Yes" if user.is_premium else "No"
permalink = f"[Click Here](tg://user?id={user_id})"
# Made by @BotVerseRavi
# Determine group role
status = "Private Chat"
if not is_private:
try:
member = bot.getChatMember(chat_id=chat_id, user_id=user_id)
status = "Admin" if member.status in ["administrator", "creator"] else "Member"
except:
status = "Unknown"
# Made by @BotVerseRavi
# Message body
info_text = f"""
*「 User Information 」*
━━━━━━•❅•°•❈•°•❅•━━━━━━
👤 *Name:* {first_name}
🔤 *Username:* {username}
🆔 *User ID:* `{user_id}`
🔗 *Permanent Link:* {permalink}
*Premium:* {premium}
🛡️ *Status:* {status}
*Made by @BotVerseRavi*
━━━━━━•❅•°•❈•°•❅•━━━━━━
"""
# Made by @BotVerseRavi
# Inline button
keyboard = [
[{"text": "View Profile", "url": f"tg://user?id={user_id}"}]
] if user.username else []

# Try sending with photo
try:
photos = bot.getUserProfilePhotos(user_id, limit=1)
if photos.total_count > 0:
file_id = photos.photos[0][0].file_id
bot.sendPhoto(
chat_id=chat_id,
photo=file_id,
caption=info_text,
parse_mode="Markdown",
reply_to_message_id=message.message_id,
reply_markup={"inline_keyboard": keyboard} if keyboard else None
)
else:
raise Exception("No photo")
except:
bot.sendMessage(
chat_id=chat_id,
text=info_text,
parse_mode="Markdown",
# Made by @BotVerseRavi reply_to_message_id=message.message_id,
reply_markup={"inline_keyboard": keyboard} if keyboard else None
)
# Made by @BotVerseRavi



👨🏻‍💻 Posted by @BotVerseRavi


📢 Share this channel with your friends and remember to give credit if you use it on your channel!
🤩31👍1🔥1🏆11