NEP DEVS
前往频道在 Telegram
NEPS DEV WHO WANT TO HELP YOU WITH FOSS PROJECT. WE COLLECT SCRIPTS THIS GROUP IS ONLY FOR EDUCATIONAL PURPOSE
显示更多无数据
订阅者
-3724 小时
-1357 天
-23530 天
帖子存档
🎚 Auto Delete Message After 10 Sec [Telebot Code]
❣️ Command:
your_command
msg=bot.sendMessage(text="This Message Delete After Few Seconds")
User.saveData("msg",msg.message_id)
Bot.runCommandAfter(timeout=10,command="/del")
❣️ Command: /del
msg=User.getData("msg")
bot.deleteMessage(chat_id=u,message_id=msg)
© Credit: @DEVSNP✅ Eᴍᴏᴊɪ Cᴀᴘᴛᴄʜᴀ Tʙᴄ Cᴏᴅᴇ
Cᴏᴍᴍᴀɴᴅ Nᴀᴍᴇ:
/start
if User.getData("CaptchaVerified") == None:
bot.sendMessage("You need to verify Captcha to use the bot")
Bot.runCommand("/captcha")
raise ReturnCommand()
bot.sendMessage("Started Main Menu")
Cᴏᴍᴍᴀɴᴅ Nᴀᴍᴇ: /captcha
arr = [
"🤖", "👁", "💼", "🐟", "🌹", "🌞", "🌎", "🍔", "🍩", "🥃",
"⚽️", "🏋♂", "🏄♂", "🤹♀", "🎲", "🎮", "🚗", "🚀", "🛰", "🚦",
"🏪", "📱", "💵", "💣", "🎁", "💌", "📚", "🔐", "💔", "☢", "♻️",
"5⃣", "✖️", "🔈", "🏳", "🏁"
]
def shuffleArray(array):
currentindex = array.copy()
libs.Random.randomInt(0, len(currentindex) - 1)
return currentindex
def rnd_int(min, max):
return libs.Random.randomInt(min, max)
index = rnd_int(0, 9)
newArray = shuffleArray(arr)
userAns = newArray[index]
User.saveData('userAns', userAns)
quiz1 = newArray[5]
quiz2 = newArray[0]
quiz3 = newArray[1]
quiz4 = newArray[9]
quiz5 = newArray[3]
quiz6 = newArray[2]
quiz7 = newArray[7]
quiz8 = newArray[6]
quiz9 = newArray[8]
quiz10 = newArray[4]
markup=InlineKeyboardMarkup()
markup.add(InlineKeyboardButton(text=f"{quiz1}",callback_data="/ans "+quiz1),InlineKeyboardButton(text=f"{quiz2}",callback_data="/ans "+quiz2))
markup.add(InlineKeyboardButton(text=f"{quiz3}",callback_data="/ans "+quiz3),InlineKeyboardButton(text=f"{quiz4}",callback_data="/ans "+quiz4))
markup.add(InlineKeyboardButton(text=f"{quiz5}",callback_data="/ans "+quiz5),InlineKeyboardButton(text=f"{quiz6}",callback_data="/ans "+quiz6))
markup.add(InlineKeyboardButton(text=f"{quiz7}",callback_data="/ans "+quiz7),InlineKeyboardButton(text=f"{quiz8}",callback_data="/ans "+quiz8))
markup.add(InlineKeyboardButton(text=f"{quiz9}",callback_data="/ans "+quiz9),InlineKeyboardButton(text=f"{quiz10}",callback_data="/ans "+quiz10))
bot.sendMessage(reply_markup=markup,text='Select the Same Emoji as ' + userAns + ' from the keyboard below')
Cᴏᴍᴍᴀɴᴅ Nᴀᴍᴇ: /ans
userAns = params
bot.deleteMessage(chat_id=u, message_id=message.message_id)
if not params:
raise ReturnCommand()
else:
ans = User.getData("userAns")
if userAns == ans:
bot.answerCallbackQuery(call.id, text="That Correct", show_alert=True)
bot.sendMessage(chat_id=u, text="*You are verified*")
User.saveData("CaptchaVerified", True)
Bot.handleNextCommand("/start")
else:
bot.answerCallbackQuery(call.id, text="That Wrong", show_alert=True)
Bot.handleNextCommand("inf")💋 Abusive Word Detector in TPY [TBC]
💹 Commands:-
*
✅ TPY:-
# List of abusive words
abusive_words = ["fuck", "lamao", "bc", "madarchod", "bc", "bhenkalowda"]
def contains_abusive_word(message):
message_lower = message.lower()
for word in abusive_words:
if word in message_lower:
return True
return False
if contains_abusive_word(message.text):
bot.sendChatAction(chat_id=message.chat.id, action="typing")
delete_url = f"https://api.telegram.org/bot{Bot.info().token}/deleteMessage?chat_id={message.chat.id}&message_id={message.message_id}"
delete_response = HTTP.get(delete_url)
if delete_response.status_code == 200:
username = message.from_user.username
if username:
notification_text = f"🚫 @{username} used abusive language and the message has been deleted. 🗑️"
else:
notification_text = "🚫 The user used abusive language and the message has been deleted. 🗑️"
bot.sendMessage(chat_id=message.chat.id, text=notification_text)
else:
bot.sendMessage(chat_id=message.chat.id, text="❌ Failed to delete the message. Please try again later.")
📌 Note:- Add Words which U want to ban In Chat in Array Add unlimited Words add Words in list Of Words.💹 Command:-
@
☣ BJS:-
var myEmoji = ["👍", "👎", "❤", "🔥", "🥰", "👏", "😁", "🤔", "🤯", "😱", "🤬", "😢", "🎉", "🤩", "🤮", "💩", "🙏", "👌", "🕊", "🤡", "🥱", "🥴", "😍", "🐳", "❤🔥", "🌚", "🌭", "💯", "🤣", "⚡", "🍌", "🏆", "💔", "🤨", "😐", "🍓", "🍾", "💋", "🖕", "😈", "😴", "😭", "🤓", "👻", "👨💻", "👀", "🎃", "🙈", "😇", "😨", "🤝", "✍", "🤗", "🫡", "🎅", "🎄", "☃", "💅", "🤪", "🗿", "🆒", "💘", "🙉", "🦄", "😘", "💊", "🙊", "😎", "👾", "🤷♂", "🤷", "🤷♀", "😡"]
var doEmoji = myEmoji[Math.floor(Math.random() * myEmoji.length)];
HTTP.post({
url: "https://api.telegram.org/bot" + bot.token + "/setMessageReaction",
body: {
chat_id: request.chat.id,
message_id: request.message_id,
reaction: JSON.stringify([
{
type: "emoji",
emoji: doEmoji,
is_big: true
}
])
}
});@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
text-decoration: none;
}
body{
background-color: #282A36;
display: flex;
justify-content: center;
align-items: center;
}
.card{
width: auto;
height: auto;
background-color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
border-radius: 20px;
}
.card h2{
margin-bottom: 10px;
}
.card a.fp{
width: 100%;
display: flex;
color: #5881D0;
}
.login_register{
display: flex;
width: 100%;
border: 1px solid rgba(221, 221, 221, 1);
border-radius: 15px;
margin: 20px 0;
}
.login_register a{
font-size: 1em;
padding: 10px 55px;
border: none;
width: 50%;
}
.login_register a.login{
border-radius: 15px;
background: linear-gradient(90deg, #003A74, #006AD5);
color: white;
}
.login_register a.register{
border-radius: 15px;
background-color: transparent;
color: black;
}
.form{
display: flex;
flex-direction: column;
width: 100%;
}
.form input{
padding: 10px;
border-radius: 5px;
border: 1px solid #DDDDDD;
color: #A0A6A3;
font-family: "Roboto Mono", sans-serif;
box-shadow: 1px 5px 9px rgba(211, 211, 211, .7);
}
.form input.email{
margin-bottom: 15px;
}
.form input.pass{
margin-bottom: 5px;
}
.login_btn{
font-size: 20px;
color: white;
border-radius: 15px;
border: none;
background-color: #003A74;
width: 100%;
padding: 10px;
margin-top: 15px;
margin-bottom: 15px;
background: linear-gradient(-90deg, #003A74, #006AD5);
box-shadow: 1px 5px 9px rgba(211, 211, 211, .9);
}
.footer_card{
display: flex;
width: 100%;
justify-content: center;
}
.footer_card p{
margin-right: 10px;
}
.footer_card a{
color: #5881D0;
}
#css🎚 Advance BB broadcast code in 2024
const idstore = Bot.getProp("idstore",[]);
const done = User.getProp("done");
if (!done) {
idstore.push(user.telegramid);
Bot.setProp("idstore", idstore, "json");
User.setProp("done", user.telegramid, "text")}
const id = params
Api.deleteMessage({
chat_id: chat.chatid,
message_id: request.message_id
})
Add This Above Code In Any Command On Top
❣️ Command :- /broadcast
👼 Answer: Send phot,video,sticker or text and i will broadcasting ASAP
👍🏻 Wait for Answer: On ✅
📖 BJS Code :
if (user.telegramid !== 1789993737) {
Bot.runCommand("/start")
return
}
const idstore = Bot.getProp("idstore")
if (idstore == undefined) {
Bot.sendMessage("No stored Id")
return
}
const caption = request.caption
//made by @Mrx605Tzbot
const len = idstore.length
Bot.sendMessage(To: ${len} Users)
for (var index in idstore) {
const info = idstore[index]
if (request.photo && request.photo[0]) {
Api.sendPhoto({
chat_id: info,
photo: request.photo[0].file_id,
caption: caption,
parse_mode: "HTML"
})
} else if (request.text) {
Api.sendMessage({
chat_id: info,
text: <b>📣@admin ~ #Broadcast</b>\n\n${message},
parse_mode: "html",
protect_content: true
})
} else if (request.video) {
Api.sendVideo({
chat_id: info,
video: request.video.file_id,
caption: caption,
parse_mode: "HTML"
})
} else if (request.audio) {
Api.sendAudio({
chat_id: info,
audio: request.audio.file_id,
caption: caption
})
} else if (request.document) {
Api.sendDocument({
chat_id: info,
document: request.document.file_id,
caption: caption,
parse_mode: "html"
})
} else if (request.sticker) {
Api.sendSticker({ chat_id: info, sticker: request.sticker.file_id })
}
}
⚠️ Give credit if you are posting on your channel.
👨💻 Created By: @Devsnp🎵 Baby Doge Official Tap Bot
👍LINK: https://t.me/BabyDogePAWS_Bot?start=r_1714591763
Tap Tap Tap
💎Dont Miss This Becz It's Official
📸 IMGBB Image Uploader TBC Code
🚀 Command:
/yourCommand
🛠 Code:
if options == None:
bot.replyText(
chat_id=u, text="<b>📸 Send Image to Upload\n\nTo Cancel: /cancel</b>")
Bot.handleNextCommand("/yourCommand")
else:
if message.text == "/cancel":
bot.replyText(chat_id=u, text="❌ *Process Cancelled*", parse_mode="markdown")
raise ReturnCommand()
if not message.photo:
bot.replyText(chat_id=u,reply_to_message_id=message["message_id"],text= f"❗ <b>Invalid Image</b>")
raise ReturnCommand()
photo = message.photo[-1].file_id
file_path = bot.getFile(photo).file_path
key = "#imgbb_API_KEY"
uimg = f"https://api.telegram.org/file/bot{Bot.info().token}/{file_path}"
src = HTTP.get(f"https://api.imgbb.com/1/upload?key={key}&image={uimg}").json()
img = src['data']['url']
bot.sendChatAction(
chat_id=message.chat.id,
action="upload_photo")
bot.replyText(chat_id=u, text=f"<b>☑️ Image Uploaded Successfully\n\n🔗 URL: <code>{img}</></>")
🔑 Get API KEY - https://api.imgbb.com