NEP DEVS
Kanalga Telegramāda oātish
NEPS DEV WHO WANT TO HELP YOU WITH FOSS PROJECT. WE COLLECT SCRIPTS THIS GROUP IS ONLY FOR EDUCATIONAL PURPOSE
Ko'proq ko'rsatishMa'lumot yo'q
Obunachilar
-3724 soatlar
-1357 kun
-23530 kun
Postlar arxiv
š¤ 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.