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 днів
Архів дописів
Pixabay Photo Search Bot BJS In Inline Mode.
Command 1 :
/start
BJS :
var inline_keyboard = [
[{ text: "Go inline here", switch_inline_query_current_chat: "" }],
[{ text: "Go inline in another chat", switch_inline_query: "" }]
]
var buttons = { inline_keyboard: inline_keyboard }
Api.sendMessage({ text: "Hy "+user.first_name+".\nI am simple photo search bot. \nI fetch images from pixabay api.", reply_markup: buttons })
Command 2 : /inlineQuery
BJS :
if (!request.query) {
return
}
let query=request.query
let text=query.replace(/\s/g, "%20");
HTTP.get({ url: "https://pixabay.com/api/?key=36545097-d5df6c20dfd41fe6ace3f8fa0&per_page=50&q="+text, success: "/onLoading "+request.id })
Command 3 : /onLoading
BJS :
var hits = JSON.parse(content).hits
var results = []
for (let i = 0; i < hits.length; i++) {
results.push({
type: "photo",
id: hits[i].id,
thumbnail_url: hits[i].previewURL,
photo_url: hits[i].webformatURL,
photo_width: hits[i].webformatWidth,
photo_height: hits[i].webformatHeight
})
}
Api.answerInlineQuery({
inline_query_id: params,
results: results
})💹 Button Url Join BJS.
☣ BJS:-
var inl = [
[
{ text: "Join Now", url: "https://t.me/MissionProjects" },
{ text: "Second Channel ", url: "https://t.me/MissionProjects" }
],
[
{ text: "Third Channel", url: "https://t.me/MissionProjects" },
{ text: "Forth Channel", url: "https://t.me/MissionProjects" }
],
[{ text: "🟢 Joined", callback_data: "/joined" }]
]
Api.sendMessage({
text: "<b>⛔️ Must Join All Our Channels</b>",
parse_mode: "html",
disable_web_page_preview: true,
reply_markup: {
inline_keyboard: inl
}
})
if (user.username != undefined) {
var hh = "[@" + user.username + "]"
} else {
var hh = ""
}
function touchingOwnLink() {
Bot.sendMessage("*❌ Stop Clicking Your Own Link*")
}
function attractedByUser(refUser) {
Api.sendMessage({
chat_id: refUser.telegramid,
text:
"<b>🔋 You Got a New </b><a href='tg://user?id=" +
user.telegramid +
"'>Referral</a> " +
hh +
"",
parse_mode: "html",
disable_web_page_preview: true
})
}
function alreadyStarted() {
Bot.sendMessage("*🚫 You Have Already Started The Bot *")
}
var tracks = {
onTouchOwnLink: touchingOwnLink,
onAtractedByUser: attractedByUser,
onAlreadyAttracted: alreadyStarted,
linkPrefix: "Bot"
}
RefLib.track(tracks)
if (!User.getProperty("UserDone")) {
User.setProperty("UserDone", true, "boolean")
var stat = Libs.ResourcesLib.anotherChatRes("status", "global")
stat.add(1)
Api.sendMessage({
chat_id: 5976088294, //admin telegram id here
text:
"➕ <b>New User Notification</b> ➕\n\n👤<b>User:</b> <a href='tg://user?id=" +
user.telegramid +
"'>" +
user.first_name +
"</a> " +
hh +
"\n\n🆔<b> User ID :</b> <code>" +
user.telegramid +
"</code>\n\n🌝 <b>Total User's Count: " +
stat.value() +
"</b>",
parse_mode: "html",
disable_web_page_preview: true
})
}
🚸 Use This BJS In /start Command🎉 Same Like NOTCOIN #New Bot
According to bitget
Dogs created by TON founder 😲
Pavel Durov 😲
If this is true we can expect some decent profit ✅
Don't fade dogs🤗
https://t.me/dogshouse_bot/join?startapp=OxOPRxGFR1K3SGWMV26VTQ
📹 YouTube Video Details BJS.
🎖 Command:-
*
❤️ BJS:-
var spl = message.split("/")
var lin = spl[3]
var id = lin.split("?")[0]
HTTP.get({
url:
"https://www.googleapis.com/youtube/v3/videos?id=" +
id +
"&key=AIzaSyBrnN1WZm8Bsx8V7AtqkKJVlKUdLobrOFc&part=snippet,contentDetails,statistics,status",
success: "/n"
})
🎖 Command:- /n
❤️ BJS:-
var yt = JSON.parse(content)
var pub = yt.items[0].snippet.publishedAt
var chid = yt.items[0].snippet.channelId
var title = yt.items[0].snippet.title
//var des = yt.items[0].snippet.description
var tumb = yt.items[0].snippet.thumbnails.maxres.url
var chnlnam = yt.items[0].snippet.channelTitle
var kids = yt.items[0].status.madeForKids
var privacy = yt.items[0].status.privacyStatus
var views = yt.items[0].statistics.viewCount
var like = yt.items[0].statistics.likeCount
var comment = yt.items[0].statistics.commentCount
var txt = `⚡️ <b>Title:</> <i>${title}</>
👀 <b>Total Views:</> <code>${views}</>
👍 <b>Total Likes:</> <code>${like}</>
💬 <b>Total Comments:</> <code>${comment}</>
☣ <b>Video Status:</> <i>${privacy}</>
👦 <b>Video For Kids:</> <i>${kids}</>
💹 <b>Channel Name:</> <i>${chnlnam}</>
🆔 <b>Channel ID:</> <code>${chid}</>`
Api.sendPhoto({
photo: tumb,
caption: txt,
parse_mode: "html",
disable_web_page_preview: true
})
☣ Note:- This Bjs Working Only For Long Video Not Short.📌 Tip For Group TBC Code
🚀 Command:
/tip
❓ Uses: /tip {amount}
🛠️ TPY Code:
if params == None:
raise ReturnCommand()
coin = "#YourCoin"
try:
amount = int(params)
except:
bot.replyText(chat_id=message.chat.id,reply_to_message_id=message["message_id"], text="<b>❌ Invalid Amount!</b>")
raise ReturnCommand()
aid = message.from_user.id
usbal = libs.Resources.anotherRes('TipBal', user=aid).value()
usrbal = int(usbal)
try:
utgid = message.reply_to_message["from"]["id"]
except:
bot.replyText(chat_id=message.chat.id,reply_to_message_id=message["message_id"], text= f"<b>❌ To Send {coin} Please Reply To Message!</b>")
raise ReturnCommand()
fname = message.reply_to_message["from"]["first_name"]
try:
tusrn = message.reply_to_message["from"]["username"]
tusrnm = f"@{tusrn}"
except:
tusrnm = fname
gusrn = message.from_user.username
gusrnm = f"@{gusrn}"
if gusrn == None:
gusrnm = message.from_user.first_name
if int(params) <= int(usrbal):
if(int(params)>0):
libs.Resources.anotherRes('TipBal', user=utgid).add(float(params))
libs.Resources.anotherRes('TipBal', user=aid).cut(float(params))
adbal = libs.Resources.anotherRes('TipBal', user=utgid).value()
addbal = int(adbal)
bot.replyText(chat_id=message.chat.id,text=f"""<b>{tusrnm} +{amount} {coin} from {gusrnm}\n
You Have: {addbal} {coin}</b>""", parse_mode="html")
bot.replyText(message.chat.id, f"<b>{gusrnm} > {tusrnm}: +{amount} {coin}</b>")
else:
bot.sendMessage(chat_id=message.chat.id,reply_to_message_id=message["message_id"],
text=f"<b>❌ Not Enough {coin}\nYou Have Only: {usrbal} {coin}</b>")
⚠️ Note:
• Add Bot as Admin in Your Group
• Reply to User Message For Tipping
• Change #YourCoin in Code With Your Coin✅ New Refer & Earn LOGO Bot
✅Each Referral : 1 Points
✅Minimum withdrawal: 5 points
🎵Link : https://t.me/LogoGetReferBot?start=1611269167
📌 5 Points == 1 Logo
#Manual
📌 Force Subscriber TPY Code
🚀 #1 Command:
*
🛠️ TPY Code:
def check():
channels = ["#@Channel"]
for i in channels:
check = bot.getChatMember(str(i), u)
if check.status != 'left':
pass
else:
return False
return True
usernm = f"""<a href="tg://user?id={u}">{message.from_user.first_name} {message.from_user.last_name}</a>"""
if message.from_user.last_name == None:
usernm = f"""<a href="tg://user?id={u}">{message.from_user.first_name}</a>"""
markup = InlineKeyboardMarkup()
markup.add(InlineKeyboardButton(
text="🟢 Joined",
callback_data=f"/joined {u}"))
tim = int(time.time())
until = tim+600
if check() != True:
bot.deleteMessage(chat_id=message.chat.id, message_id= message.message_id)
bot.restrictChatMember(chat_id=message.chat.id, user_id=u,can_send_messages=False, until_date=until)
txt = f"""<b>
📛 Hello {usernm}, Please Join Our Channel To Send Message in This Group
➤ #@Channel
❇️ After Joining, Click <code>🟢 Joined</code></b>"""
bot.replyText(chat_id=message.chat.id, text =txt, reply_markup=markup)
🚀 #2 Command: /joined
🛠️ TPY Code:
if params != str(u):
bot.answerCallbackQuery(call.id,'⛔ This Message is Not For You',show_alert=True)
raise ReturnCommand()
def check():
channels = ["#@Channel"]
for i in channels:
check = bot.getChatMember(str(i), u)
if check.status != 'left':
pass
else:
return False
return True
usernm = f"""<a href="tg://user?id={u}">{call.from_user.first_name} {call.from_user.last_name}</a>"""
if call.from_user.last_name == None:
usernm = f"""<a href="tg://user?id={u}">{call.from_user.first_name}</a>"""
if check() == True:
bot.restrictChatMember(chat_id=message.chat.id, user_id=u,can_send_messages=True)
bot.editMessageText(chat_id=message.chat.id, message_id= message.message_id, text=f"<b>🚀 {usernm}, Thanks For Joining Our Channel\n\n💬 Now You Can Send Message</b>")
else:
bot.answerCallbackQuery(call.id,'❌ Must Join Our Channels',show_alert=True)
⚠️ Alert: Replace All #@Channel With Your Channel Username and Must Add Your Bot as Admin in Channel and Group.✅ Webhook Broadcast Bjs
➡️ Step 1
Put the BJ's below in your /start command
🛠️ Bjs Code :
var us = Bot.getProperty("broadcasting", { list: {} })
if (!us.list[user.telegramid]) {
us.list[user.telegramid] = { user_id: user.id, user_tg: user.telegramid }
Bot.setProperty("broadcasting", us, "json")
}
The Above 👆BJ's Code Must be On the /start Command to Make the BJ's Work
🚀 Command : /broadcast
Wait For Answer : On ✅
🔻 Answer: Enter your message to broadcast
🛠️ Bjs Code :
if (request.video) {
var us = Bot.getProperty("broadcasting", { list: {} })
var msg = message
for (var i in us.list) {
var ase = us.list[i].user_id
var id = us.list[i].user_tg
var url = Libs.Webhooks.getUrlFor({
command: "/go1y2",
user_id: ase
})
HTTP.post({
url: url,
body: {
msg: msg,
captions: request.caption,
video: request.video.file_id,
id: id
}
})
}
return
}
if (request.photo[0]) {
var key = Bot.getProperty("admin_chat")
var us = Bot.getProperty("broadcasting", { list: {} })
var msg = message
for (var i in us.list) {
var ase = us.list[i].user_id
var id = us.list[i].user_tg
var url = Libs.Webhooks.getUrlFor({
command: "/go1y2",
user_id: ase
})
HTTP.post({
url: url,
body: {
msg: msg,
caption: request.caption,
image: request.photo[0].file_id,
id: id
}
})
}
return
}
var key = Bot.getProperty("admin_chat")
var us = Bot.getProperty("broadcasting", { list: {} })
var msg = message
for (var i in us.list) {
var ase = us.list[i].user_id
var url = Libs.Webhooks.getUrlFor({
command: "/go1y2",
user_id: ase
})
HTTP.post({
url: url,
body: {
ktp: msg
}
})
}
~~~
🚀 Command : /go1y2
🛠️ Bjs Code
var data = JSON.parse(content)
var c = data.caption
var vc = data.captions
var video = data.video
var image = data.image
var id = data.id
var msg = data.msg
if (vc) {
Api.sendVideo({ chat_id: id, video: video })
}
if (video) {
Api.sendVideo({
chat_id: id,
video: video,
caption: vc,
parse_mode: "HTML"
})
return
}
if (c) {
Api.sendPhoto({
chat_id: data.id,
photo: data.image,
caption: c,
parse_mode: "HTML"
})
return
}
if (image) {
Api.sendPhoto({ chat_id: id, photo: image })
return
}
Bot.sendMessage(data.ktp)
✅ Libs needed: Webhook lib🚸 Hide Half Mobile Number And Email BJS.
➡️ For Email
var email = message
var msg = "<b>🤳Paid Address:</b> "+email.slice(0,4)+"****@gmail.com"
Api.sendMessage({
message: msg,
parse_mode: "html",
disable_web_page_preview: true
})
➡️ For Mobile Number
var num = message
var msg = "<b>🤳Paid Address:</b> "+num.slice(0,4)+"***"+num.slice(8,10)+""
Api.sendMessage({
message: msg,
parse_mode: "html",
disable_web_page_preview: true
})📹 Free to use api key youtube total subscriber 👇👇
❤️ Command:-
your command
💹 BJS:-
HTTP.get({
url:
"https://www.googleapis.com/youtube/v3/channels?part=statistics&id=" YOUR CHANNEL ID "&key=AIzaSyBrnN1WZm8Bsx8V7AtqkKJVlKUdLobrOFc",
success: "/ytdone"
})
❤️ Command:- /ytdone
💹 BJS:-
var result = JSON.parse(content)
var hi = result.items[0].statistics.subscriberCount
var hello = result.items[0].statistics.videoCount
var view = result.items[0].statistics.viewCount
Bot.sendMessage(
"*Subscriber*: " +
hi +
"\n\n*Total Vedeo:* " +
hello +
"\n*View count*: " +
view +
"\n\nFor more = @DEVSNP"
)🆔 Gᴇᴛ Usᴇʀ Dᴇᴛᴀɪʟs Fʀᴏᴍ Fᴏʀᴡᴀʀᴅ Mᴇssᴀɢᴇ... [Tʙᴄ]
📦 Cᴏᴍᴍᴀɴᴅ: /getdetails
if options==None:
bot.sendMessage("send forward message")
Bot.handleNextCommand("/getdetails",options=True)
else:
if not message.forward_from:
bot.sendMessage("‼️* This Not a Forward*")
raise ReturnCommand()
Id = message.forward_from.id
uname = message.forward_from.username
name = message.forward_from.first_name
bot.sendMessage("*Name* " + name + "\n*Id* " + str(Id) + "\n*Username @*" + uname,parse_mode="markdown")
👋 Credits @DEVSNP