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 天
帖子存档
🫂Guys i am buying old Telegram groups
✅Year 2016 to 2023
✅2024 jan and feb , march
👍No need any members
Price dm
Dm @atomhere or @contact_sharp_bot
SPOTIFY TRACK DOWNLODER BOT CODE
command :
*
TBL code :
if (!msg) return;
//function to check is it Spotify url
function isSpotifyUrl(url) {
const regex = /^https?:\/\/open\.spotify\.com\/(track|album|playlist|artist)\/[a-zA-Z0-9]+/;
return regex.test(url);
}
if(!isSpotifyUrl(message)){
msg.reply("*Pls send me a Spotify track URL*")
return;
}
// Set nonce data
async function setNonce(nonce) {
let str = {
nonce: nonce,
ts: Date.now()
}
Bot.set("nonce_data", str, "json")
}
// Generate nonce
async function getNonce() {
const res = await HTTP.get('https://spotify.downloaderize.com/');
const html = res.data;
// Find nonce in JS snippet
const match = html.match(/"nonce":"([a-f0-9]+)"/);
if (match) {
return match[1];
}
return null;
}
let nonce_data = Bot.get("nonce_data")
let nonce;
if (!nonce_data || nonce_data.nonce) {
nonce = await getNonce()
await setNonce(nonce)
} else if (Date.now() - nonce_data.ts > 3600000) {
nonce = await getNonce()
await setNonce(nonce)
} else {
nonce = nonce_data.nonce
}
let qs = modules.qs
let data = qs.stringify({
'action': 'spotify_downloader_get_info',
'url': message,
'nonce': nonce
});
let config = {
url: 'https://spotify.downloaderize.com/wp-admin/admin-ajax.php',
headers: {
'Accept': 'application/json, text/javascript, */*; q=0.01',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: data
};
// Step 1: Notify user about download
let statusMsg = await Api.sendMessage({
chat_id: chat.id,
text: '⬇️ Downloading song...'
});
Api.sendChatAction({
chat_id: chat.id,
action: 'typing'
});
// Step 2: Fetch song info
let res = await HTTP.post(config);
if (res.ok && res.data && res.data.success) {
let audioUrl = res.data.data.medias[0].url;
let title = res.data.data.title;
let author = res.data.data.author;
let duration = res.data.data.duration;
// Step 3: Update status to sending
Api.editMessageText({
chat_id: chat.id,
message_id: statusMsg.result.message_id,
text: '📤 Sending song...'
});
Api.sendChatAction({
chat_id: chat.id,
action: 'upload_audio'
});
// Step 4: Send audio
Api.sendAudio({
chat_id: chat.id,
audio: audioUrl,
caption: `🎵 ${title}\n👤 ${author}\n⏱️ ${duration}`,
parse_mode: "Markdown"
});
Api.deleteMessage({
chat_id: chat.id,
message_id: statusMsg.result.message_id
});
} else {
Api.editMessageText({
chat_id: chat.id,
message_id: statusMsg.message_id,
text: '❌ Failed to download song. Please try again.'
});
//we will fetch it on bg
nonce = await getNonce()
await setNonce(nonce)
}
//Using unofficial API
📈 Getting Started is Simple!
1. Sign up / Log in at https://telebothost.com/
2. Add your first bot
3. Paste the codes and begin your adventure
Share your bot and codes with us to be part of our journey
👍🏻 Don’t forget to share this with your friends!🫂Guys i am buying old Telegram groups
✅Year 2016 to 2023
✅2024 jan and feb
👍No need any members
Price dm
Dm @atomhere or @contact_sharp_bot
Use @bbpremiumbot to check your old groups
If you have old groups , we will buy and pay you
🫂Guys i am buying old Telegram groups
✅Year 2016 to 2023
✅2024 jan and feb
👍No need any members
Price dm
Dm @atomhere or @contact_sharp_bot
