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 днів
Архів дописів
🤖 Chat GPT TPY Code Which Can Response According to Previous Message.
🚀 Command:
*
🛠 Code:
url = "https://chat-gpt.hazex.workers.dev/"
lastResponse = User.getData("GptMsg")
if lastResponse is None:
lastResponse = []
data = {
"gpt": lastResponse,
"user": str(message.text)
}
response = HTTP.post(url, json=data)
if response.status_code == 200:
get = bunchify(response.json())
ans = get.answer
bot.replyText(chat_id=u, text=ans, parse_mode="markdown")
lastResponse.append(str(ans))
if len(lastResponse) > 8:
lastResponse.pop(0)
User.saveData("GptMsg", lastResponse)
else:
bot.replyText(u, response.json())
Credit : @DEVSNP✨ Ai Image Generator BJS.
❤️ Command:-
*
💹 BJS:-
HTTP.get({
url:
"https://img-gen.hazex.workers.dev/?prompt=" +
message +
"&improve=true&imageCount=3&format=wide",
success: "/on"
})
❤️ Command:- /on
💹 BJS:-
var cc = JSON.parse(content)
var json = cc.images
for (var index in json) {
var ccc = json[index]
Api.sendPhoto({ photo: ccc })
}
⛓ BY:- @DEVSNP❓How To Create Advance Image Captcha In Your Bot
🧩 Command:-
📷 Image Captcha
🖥 TPY :-
captcha = libs.Random.randomStr(4, "1234567890AbcFQWERTYUIOPAcVJBKNLHhrrdhkk")
bot.replyPhoto(u, photo=f"https://tkkytrsop.live/ImageCaptcha.php?text={captcha}",
caption="❇️ Enter This Text To Verify Yourself", parse_mode="markdown")
User.saveData("captcha", captcha)
Bot.handleNextCommand("/verify", options=captcha)
🧩 Command:- /verify
🖥 TPY:-
captcha = User.getData("captcha")
if str(captcha) == str(message.text):
bot.replyText(u, "*✅ You are verified*",disable_web_page_preview=True,parse_mode="markdown")
else:
bot.replyText(u, "Wrong Captcha")
➖➖➖➖➖➖➖➖➖➖➖➖➖Join Fast !
& Click Verfiy ($1)
https://t.me/+zLUhG0jgZztlZGMx
Send screen shot to @Giveawayzsupportbot
First 20 will win 1$
🖊 File Rename Bot Code [ Python ]
import os
import telebot
bot = telebot.TeleBot("BOT_API_TOKEN")
user_new_names = {}
@bot.message_handler(commands=['start'])
def send_welcome(message):
bot.reply_to(message, f"""<b>Welcome to the file renamer bot. Send me a file to rename it. By @Privates_Bots</b>""",parse_mode="HTML")
@bot.message_handler(content_types=['document'])
def handle_file(message):
file_name = message.document.file_name
file_id = message.document.file_id
file_info = bot.get_file(file_id)
downloaded_file = bot.download_file(file_info.file_path)
bot.send_message(message.chat.id, f"""<b>Current file name:</b> <code>{file_name}</code>\n<b>What should be the new name?</b>""",parse_mode="HTML")
user_chat_id = message.chat.id
user_new_names[user_chat_id] = (file_name, downloaded_file)
@bot.message_handler(func=lambda message: message.chat.id in user_new_names and user_new_names[message.chat.id] is not None)
def handle_new_name(message):
original_file_name, downloaded_file = user_new_names[message.chat.id]
new_name = message.text.strip()
renamed_file_name = "" + new_name
with open(renamed_file_name, 'wb') as renamed_file:
renamed_file.write(downloaded_file)
with open(renamed_file_name, 'rb') as renamed_file:
bot.send_document(message.chat.id, renamed_file)
del user_new_names[message.chat.id]
os.remove(renamed_file_name)
bot.polling()🔉 Auto English Voice Generator BJS.
❤️ Command:-
*
⛓ BJS:-
var api = "3f5866ce7e32445f903e48fb27e58796" //get it from https://voicerss.org
Api.sendAudio({
audio: "api.voicerss.org/?key=" + api + "&hl=en-us&r=0&c=MP3&src=" + message,
caption: "*📔 Here is your Speech!!\n\n💫Generated by @" + bot.name + "*",
parse_mode: "markdown"
})
🔉 Auto Hindi Voice Generator BJS.
❤️ Command:- *
⛓ BJS:-
var api = "3f5866ce7e32445f903e48fb27e58796" //get it from https://voicerss.org
Api.sendAudio({
audio: "api.voicerss.org/?key=" + api + "&hl=hi-in&r=0&c=MP3&src=" + message,
caption: "*📔 Here is your Speech!!\n\n💫Generated by @" + bot.name + "*",
parse_mode: "markdown"
})🥴 Tip Sender BJS In Group..
❤️ Command:-
tip
⛓ BJS:-
if (chat.chat_type != "private") {
function find() {
Bot.sendMessage("*⚠️ Incorrect Format use*\n\n`[tip] [Amount]`", {
is_reply: true
})
}
try {
if (!params) {
}
let receive = params.split(" ")
var amo = receive[0]
var newamo = amo * 1
var cur = "INR" //YOU can change your currency name
var adm = 5976088294 //admin telegram Id here
} catch (err) {
find()
return
}
if (newamo < 1) {
return
}
if (amo.includes("-")) {
return
}
if (amo.includes("+")) {
return
}
if (amo.includes("×")) {
return
}
if (amo.includes("÷")) {
return
}
if (amo.includes(".")) {
return
}
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n)
}
if (!isNumeric(amo)) {
return
}
if (!user) {
return
}
if (!message) {
return
}
if (!request.reply_to_message) {
return
}
if (request.reply_to_message.from.username == bot.name) {
Bot.sendMessage("❌ I Don't Need Your " + cur + " 😅", { is_reply: true })
return
}
if (request.sender_chat && request.sender_chat.type == "channel") {
Bot.sendMessage("❌ You can't Tip " + cur + " As A Channel!", {
is_reply: true
})
return
}
if (
request.reply_to_message.sender_chat &&
request.reply_to_message.sender_chat.type == "channel"
) {
Bot.sendMessage("❌ You can't Tip " + cur + " To A Channel.", {
is_reply: true
})
return
}
let to_msg = request.reply_to_message.message_id
var info = "balance"
let res = Libs.ResourcesLib.userRes("" + info + "")
if (res.value() < newamo) {
Bot.sendMessage(
"⚠️* Insufficient Balance!*_ Need atleast " +
newamo +
" " +
cur +
"_\n\n💵* Your Balance:*_ " +
res.value() +
" " +
cur +
"_",
{ is_reply: true }
)
return
}
var anoid = "" + request.reply_to_message.from.id + ""
if (anoid == user.telegramid) {
Bot.sendMessage("*😂 You Can't Tip Your Self..*", { is_reply: true })
return
}
var myid = user.telegramid
let resA = Libs.ResourcesLib.anotherUserRes("" + info + "", anoid)
resA.add(parseFloat(newamo))
let resB = Libs.ResourcesLib.anotherUserRes("" + info + "", myid)
resB.remove(parseFloat(newamo))
var tp = "🔔"
var usu = request.reply_to_message.from.username
if (!usu) {
var usern =
"<a href='tg://user?id=" +
anoid +
" '>" +
request.reply_to_message.from.first_name +
"</a>"
} else {
var usern = "@" + usu
}
if (!user.username) {
var usernamei =
"<a href='tg://user?id=" +
user.telegramid +
" '>" +
user.first_name +
"</a>"
} else {
var usernamei = "@" + user.username
}
var prefix = "+"
var nam = Libs.commonLib.getLinkFor(user)
Api.sendChatAction({
action: "typing"
})
Api.sendChatAction({
action: "typing"
})
Bot.sendMessage(
"*🎉 Congratulations*, You Have Just Get *" +
prefix +
"" +
newamo +
" " +
cur +
"*",
{ reply_to_message_id: to_msg }
)
Api.sendMessage({
text:
"" +
usernamei +
" > " +
usern +
" <b>" +
prefix +
"" +
newamo +
" " +
cur +
"</>",
parse_mode: "HTML"
})
if (adm == user.telegramid) {
} else {
Bot.sendMessage(
"*💵 Your Balance:* " + res.value().toFixed(3) + " *" + cur + "*",
{ is_reply: true }
)
}
if (tp == "🔔") {
Api.sendMessage({
chat_id: anoid,
text:
"<b>🥰 You Got</> <code>" +
amo +
"</> <b>" +
cur +
" from </>" +
usernamei +
"",
parse_mode: "html"
})
}
}🎚 Website Screenshot (BJS) .
❣️ Command:
/down
📖 Bjs:
Api.sendPhoto({
photo:
"https://api.screenshotmachine.com/?key=49dcbd&dimension=1024x768&format=png&cacheLimit=0&url=" +
params
})
Example use:
/down https://google.com
📝 Change your API key. Get API Key from screenshotmachine.com
© Credit: @DEVSNP.❤️ Faucet Pay Auto Withdraw BJS.
if(request.data){
var message_id = request.message.message_id
var chat_id = request.message.chat.id
Api.deleteMessage({
chat_id : chat_id,
message_id : message_id
})
}
if (!user.first_name) {
var valid_name = user.last_name
} else {
var valid_name = user.first_name
}
let currency = Bot.getProperty("currency");
let refList = Libs.ReferralLib.getRefList()
let users = refList.getUsers()
if (users.length < 100000000) {
var count = users.length
} else {
var count = refList.count
}
var user_link = Libs.commonLib.getLinkFor(user)
var withdrawn = Bot.getProperty("totalWithdrawn")
withdrawn = parseFloat(withdrawn)
var wallet = User.getProperty("TRXwallet")
var userPayment = Libs.ResourcesLib.anotherChatRes("totalPayment", "global")
var balance = Libs.ResourcesLib.userRes("balance")
if (isNaN(message)) {
} else {
}
let wn=Bot.getProperty("mw")
if (message < wn) {
Bot.sendMessage("_👋 Minimum Withdraw "+wn+" "+currency+"_")
} else {
if (message > balance.value()) {
Bot.sendMessage(
"_👋 Maximum Withdraw " + balance.value().toFixed(6) + " "+currency+"_"
)
} else {
balance.add(-message)
userPayment.add(+message)
let api_key=Bot.getProperty("apik")
var amount = message*100000000 //= equivalent 0.00000001 BCH, TRX, LTC etc
//enter your email or address
User.setProperty("amount", message, "string")
//setup
HTTP.post({
url: "https://faucetpay.io/api/v1/send",
success: "/onWdSuc ",
body:
"api_key=" +
api_key +
"&amount=" +
amount +
"&to=" +
wallet +
"¤cy=" +
currency +
"",
headers: {
"Content-type": "application/x-www-form-urlencoded",
Accept: "application/json"
}
})
}}
Credits : @DEVSNP❓ How To Delete Channel Message By Our Bots ?
🔍 Solution --> Follow Below Steps And Codes To Delete Your Channel Message By Your Own Bot.
☞︎︎︎ Steps
=======
➥ Make The Bot As Admin In Your Channel.
➥ Use The Below Code And Enter Message Id Of That Post.
➥ Done, Post Will Delete Successfull.
==============================
➥ Command =
/del
➥ Answer = *🖇 Enter Channel Username From Which You Want To Delete Message.\n\n⚠️ Note = Bot Should Be Must Admin Of That Channel.*
➥ Wait For Answer = On
➥ BJS =
if(user.telegramid == 1299920908){
Bot.run({
command : "Delete",
options : { channel : message } })
}else{
Bot.sendMessage("*⛔️ You Are Not An Admin.*")
}
➥ Command = Delete
➥ Answer = *💮 Enter Message Id Of Post.*
➥ Wait For Answer = On
➥ BJS =
if(user.telegramid == 1299920908){
var chat = options.channel
Api.deleteMessage({
chat_id: chat,
message_id: message })
Bot.sendMessage("*🗑 Channel Message Has Been Deleted Successfully.\n\n• Go To Channel & Check The Message.*")
}
📌 Note = Bot Can Delete The Message Of 48 Hours Only.