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 днів
Архів дописів
🎚 IP Verification [Bots Business Code]
🩵 Command:
/start
📖 Bjs:
var verify = User.getProperty("verify")
if (verify) {
Bot.runCommand("M")
return
}
var url2 = Libs.Webhooks.getUrlFor({
command: "onWebhook",
user_id: user.id
})
var webPage =
"https://api.jobians.top/captcha/verify?webhookUrl=" +
encodeURIComponent(url2)
var tto =
"*✅️ Please Verify Yourself By Clicking Below Button\n\n⚠️ Don't Use VPN\n\n⚠️ Don't Create Multiple Accounts*"
var inl = [{ title: "↗️ Verify Me", url: webPage }]
Bot.sendInlineKeyboard(inl, tto)
🩵 Command: onWebhook
📖 Bjs:
if (!content) {
return
}
var data = JSON.parse(content)
var ip = data.results.ip
.split(".")
.slice(0, 3)
.join(".")
var captcha = data.results.captcha
var vpn = data.results.vpn
var verify = User.getProperty("verify")
if (verify) {
return
}
if (vpn == "yes") {
Bot.sendMessage("🚨 You Are Ban For Using VPN!")
Bot.blockChat(chat.id)
return
}
var ips = Bot.getProperty("ips", { list: {} })
if (ips.list[ip]) {
Bot.sendMessage("❌ You Have Been Banned For Using Multiple Account")
Bot.blockChat(chat.id)
return
}
if (captcha == "ok") {
var ips = Bot.getProperty("ips", { list: {} })
ips.list[ip] = true
Bot.setProperty("ips", ips, "json")
Bot.sendMessage("✅ You Are Verified Now")
User.setProperty("verify", "ok", "string")
Bot.runCommand("/start2")
}
🎙 Note: Must Download Webhooks Libs.
➖➖➖➖➖➖➖➖➖➖➖➖➖➖ ➖➖➖
⚠️ Give credit if you are posting on your channel.
© Credit: @DEVSNP.🤌🏻 Eᴍᴏᴊɪ Dᴇᴛᴇᴄᴛᴏʀ [Bᴏᴛs Bᴜsɪɴᴇss Cᴏᴅᴇ]
//made by @Devsnp
function detectEmoji(message) {
const emojiRegex = /[\uD800-\uDFFF]|[\u2600-\u27BF]|[\u2B50-\u2B55]|[\u2300-\u23FA]|[\u3030-\u303D]|[\u3297-\u3299]|[\uD83C][\uDC00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDDE0-\uDDFF]|[\uD83E][\uDD10-\uDDFF]/g
return emojiRegex.test(message)
}
//made by @Devsnp
const containsEmoji = detectEmoji(message)
if (containsEmoji) {
Bot.sendMessage(`Contains emoji: ${containsEmoji}`)
} else {
Bot.sendMessage("No emoji found")
}
//made by @DevsNp🥳 Hᴏᴡ Tᴏ Sᴇɴᴅ Sᴘᴏʟɪʟᴇʀ Iɴ Tᴇʟᴇʙᴏᴛ Cʀᴇᴀᴛᴏʀ Aᴘᴘ
spoiler_text = "This is a spoiler message! ||Hidden text here||"
bot.sendMessage(chat_id=message.chat.id, text=spoiler_text, parse_mode="Markdown")🎚Forward Tag remover Bot TPY codes With Inline Button Suppor [Telebot Codes]
❓ This TPY Delete Forwarded Messages Or Media Files From Your Channel, And Send It Back After Removing The Forwarded Tag !!
❣️ Command:
/channel_updates
📖 TPY:
msgg = str(message)
if 'media_group_id' in msgg:
raise ReturnCommand
# Ensure the post contains the 'forward' tag
if 'forward' in message:
message_id = message['channel_post']['message_id']
chat_id = message['channel_post']['chat']['id']
# Extract the inline keyboard, if it exists
inline_keyboard = message['channel_post'].get('reply_markup', {}).get('inline_keyboard', [])
# Copy the message
url_copy = f'https://api.telegram.org/bot{Bot.info().token}/copyMessage'
params_copy = {
'chat_id': chat_id, # target chat id
'from_chat_id': chat_id,
'message_id': message_id,
'reply_markup': {
'inline_keyboard': inline_keyboard
}
}
HTTP.post(url_copy, json=params_copy)
# Delete the old message
url_delete = f'https://api.telegram.org/bot{Bot.info().token}/deleteMessage'
params_delete = {
'chat_id': chat_id,
'message_id': message_id
}
HTTP.post(url_delete, params=params_delete)
© Credit: @Devsnp.❓How To Set Bot Menu Commands In Your Bot
❣️ Command:-
/setMyCommands
📖 TPY :-
bot_token = Bot.info().token
commands = [
{'command': 'start', 'description': 'start me'},
{'command': 'help', 'description': 'get help'},
{'command': 'list', 'description': 'just ok'}
]
# Set the commands
url = f'https://api.telegram.org/bot{bot_token}/setMyCommands'
headers = {'Content-type': 'application/json'}
data = {
'commands': commands,
'scope': {'type': 'default'}
}
response = bunchify(HTTP.post(url, headers=headers, json=data).json())
bot.replyText(u, response)
➖➖➖➖➖➖➖➖➖➖➖➖➖
⚠️ Give credit if you are posting on your channel.
© Credit: @Devsnp