Siya Bots
Открыть в Telegram
Youtube channel https://youtube.com/@sozpaudel?si=UMiLNPciAjvAxNOR For any code related problems, contact only @shlok_bundele Our partner channels: @FlashComBjs @FlashComTpy @FlashComOfficial
Больше278
Подписчики
Нет данных24 часа
Нет данных7 дней
Нет данных30 дней
Архив постов
278
Instagram Profile Information Finder Bot - TPY code.
Command:
*
TPY:
response = HTTP.get(f'https://pbcigapi-837dedb213fb.herokuapp.com/profile?username={message.text}')
data = response.json()
pic_url = data['picurl']
full_name = data['full_name']
username = data['username']
user_id = data['user_id']
followers = data['followers']
following = data['following']
posts = data['posts']
is_private = "Private" if data['is_private'] else "Public"
is_verified = "Verified" if data['is_verified'] else "Not Verified"
bio = data['bio']
caption = f"Instagram Profile Information:\nUsername: `@{username}`\nFull Name: `{full_name}`\nUser ID: `{user_id}`\nFollowers: `{followers}`\nFollowing: `{following}`\nPosts: `{posts}`\nPrivacy: `{is_private}`\nVerification: `{is_verified}`\nBio: `{bio}`"
bot.sendPhoto(photo=pic_url, caption=caption,parse_mode="Markdown")
Written by: @shlok_bundele
Copyrights: @siyabots
API by: @siyabots
Note: It can stop working anytime.278
Selling this @lina_aibot bots source code with web app and customizable api. Web demo - bit.ly/lina-ai
278
Should we create a bot development language like TelePython or BotJavaScript?
& a website or a app to host the bots with your written codes?
278
@shreerambots
Guys subscribe to our another telegram channel for being updated to latest telegram bots & their codes!
- Shlok
278
Random shlok from Bahgavad Gita tpy
Command:
/shlok
TPY Code:
response = HTTP.get(f'https://shloka.onrender.com/api/v1/bahgavad_gita/random')
verse = response.json()['Verse No']
shloka = response.json()['Shloka']
translation = response.json()['English Translation']
explanation = response.json()['Explanation']
chapter = response.json()['Chapter']
message = f'<b>Chapter</b>: {chapter}\n<b>Verse</b>: {verse}\n<b>Shloka</b>: {shloka}\n<b>Translation</b>: {translation}\n<b>Explanation</b>: {explanation}'
if len(message) > 4096:
bot.sendMessage(text="Error: <code>The message is too long.</code>",parse_mode='HTML')
else:
bot.sendMessage(text=message,parse_mode='HTML')
Written by: @shlok_bundele
© @siyabots278
Random shlok from Bahgavad Gita bjs
Command:
/start
Wait for answer: False
Bjs:
Bot.sendMessage("Use /shlok command to get a random shlok from Bahgavad Gita!");
Command: /shlok
Wait for answer: False
Bjs:
HTTP.get({
url: "https://shloka.onrender.com/api/v1/bahgavad_gita/random",
success: "/next"
});
Command: /next
Wait for answer: False
Bjs:
const jsonData = JSON.parse(content);
const verseNumber = jsonData["Verse No"];
const shloka = jsonData.Shloka;
const translation = jsonData["English Translation"];
const explanation = jsonData.Explanation;
const chapter = jsonData.Chapter;
Bot.sendMessage("*Chapter*: "+chapter+"\n*Verse*: "+verseNumber+"\n*Shloka*: "+shloka+"\n*Translation*: "+translation+"\n*Explanation*: "+explanation);
Written by: @shlokbundele
© @siyabots278
Instagram Reel Downloader Bot Python Code.
import telebot
import requests
# Replace 'YOUR_BOT_TOKEN' with your actual Telegram bot token
bot_token = 'YOUR_BOT_TOKEN'
bot = telebot.TeleBot(bot_token)
@bot.message_handler(commands=['start'])
def handle_start(message):
bot.send_message(message.chat.id, "Welcome! Send me an Instagram reel URL to download and send back to you.")
@bot.message_handler(regexp=r'^https://www.instagram.com/reel/')
def handle_instagram_reel(message):
processing_message = bot.send_message(message.chat.id, "Processing the Instagram reel URL...")
try:
reel_url = download_instagram_reel(message.text)
if reel_url:
bot.delete_message(message.chat.id, processing_message.message_id)
bot.send_video(message.chat.id, video=reel_url, caption=f"Instagram Reel Downloaded From @{bot.get_me().username}")
else:
bot.edit_message_text(chat_id=message.chat.id, message_id=processing_message.message_id,
text="Failed to download the Instagram reel. Please try again later.")
except Exception as e:
bot.send_message(message.chat.id, str(e))
bot.edit_message_text(chat_id=message.chat.id, message_id=processing_message.message_id,
text="Failed to download the Instagram reel. Please try again later.")
@bot.message_handler(func=lambda message: True)
def handle_invalid_input(message):
bot.send_message(message.chat.id, "Please send a valid Instagram reel URL to download and send back to you.\nExample: https://www.instagram.com/reel/C0ZK2HUpA5w/?igsh=cGw2YnBjMXE3ZmQ2")
def download_instagram_reel(url):
try:
response = requests.get(f"https://nodejs-1xn1lcfy3-jobians.vercel.app/v2/downloader/instagram?url={url}")
data = response.json()
if data.get("status") == True and isinstance(data.get("data"), list) and len(data.get("data")) > 0:
reel = data.get("data")[0]
if reel.get("type") == "video" and reel.get("url"):
return reel.get("url")
except Exception as e:
pass
return None
# Replace 'YOUR_BOT_TOKEN' with your actual Telegram bot token
bot.polling()
Written By: @shlokbundele
API By: @jobianstechie278
AI GIRLFRIEND BJS:-
✨ 𝘾𝙤𝙢𝙢𝙖𝙣𝙙:-
*
🌀 𝘽𝙟𝙨:
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})
HTTP.get({ url:"https://chatgpt.apinepdev.workers.dev/?question="+encodeURIComponent(message) +"&state=girlfriend",
success: "/answer"
})
✨ 𝘾𝙤𝙢𝙢𝙖𝙣𝙙: /answer
🌀 𝘽𝙟𝙨:
var answer = JSON.parse(content).answer;
if (answer) {
var styledMessage = `*${answer}*💖`; //madebyNepcoder
Api.sendMessage({
text: styledMessage,
parse_mode: "Markdown"
});
} else {
console.log("The 'answer' variable is empty.");
}
Api By @DEVSNP
Also Code by Nepcoder
Dev : NEP CODER
Published By : @siyabots
Copyright ©️:@prime_Nepcoder278
Command:
/download
Answer: Enter the terabox content link to get it's direct download link.
Wait for answer: true
Bjs:
HTTP.get({
url: "https://tera.instavideosave.com/?url=" +message,
success: "/next"
});
Command: /next
Wait for answer: false
Bjs:
const jsonData = JSON.parse(content)
const dlink = jsonData.api.dlink
Bot.sendMessage("Download link: [Click me](" + dlink + ")")
@sarozpaudel | @shlokbundele278
Api.sendMessage({text:"This message can't be copied or forwarded & You can't take screenshot of this message.",protect_content:true
});
Protect content | disable message forwarding or copying in bot.278
Python code to delete Joined or left group messages.
import telebot
from telebot import types
# Replace 'YOUR_BOT_TOKEN' with the actual token you obtained from BotFather on Telegram
TOKEN = 'YOUR_BOT_TOKEN'
bot = telebot.TeleBot(TOKEN)
@bot.message_handler(func=lambda message: True, content_types=['new_chat_members', 'left_chat_member'])
def delete_join_leave_message(message):
bot.delete_message(message.chat.id, message.message_id)
if __name__ == "__main__":
bot.polling(none_stop=True)
Install telebot library first:
pip install pyTelegramBotAPI278
Repost from Code With Karan
🐍 Simple Smm Panel View Booster Codes (Python)
🌐 Tutorial - Click Here
👩💻 Maked By - @KsCoder
🙏 Enjoy Share And Support Us For More.
278
Repost from Bots.business Unofficial Channel
❓ How to make more than one admin in a Bot
🧩 Command :- /addadmin
⌨️ Answer :- Enter the telegram id of user to whom u want to make admin
✅ Wait for reply
🖥 BJS :-
var owner = "owner telegram id"
if(user.telegramid != owner){
Bot.sendMessage('u r not a owner')
return
}
var adminlist = Bot.getProperty("adminlist")
var admin = message
var isAdmin = adminlist.includes(admin);
if(isAdmin){
Bot.sendMessage("user is already a Admin")
return
}
adminlist.push(admin)
Bot.sendMessage("User" + admin + " is made As admin of bot")
Bot.setProperty("adminlist",adminlist,"json")
🧩 Command :- For all admin commands
🖥 BJS :-
var adminlist = Bot.getProperty("adminlist")
var user = user.telegramid
var isAdmin = adminlist.includes(user);
if(!isAdmin){
Bot.sendMessage("U r not admin of an Bot")
return
}
// your bjs
👨💻 Code Developer :- @sohamdeogaonkar1
⚠️ Please report error to me if happens
⚠️ Anyone may already have made this.But we never check their Bjs . We have made whole Bjs By our own.If then also anyone have issue with it can contact me