LeakingCode | LC On Top!
Open in Telegram
On this channel we leak data. The data that was leaked included various types of data ranging from general data to prohibited data and other similar things Channel Created By @Lintar21
Show more1 757
Subscribers
No data24 hours
No data7 days
+1730 days
Posts Archive
Repost from Ghost Store || ilegal - legal
SC BOT TELEGRAM AUTO UPLOAD KE GOOGLE DRIVE
const TelegramBot = require('node-telegram-bot-api');
const { google } = require('googleapis');
const fs = require('fs');
const botToken = 'YOUR_BOT_TOKEN';
const googleDriveFolderId = 'YOUR_GOOGLE_DRIVE_FOLDER_ID';
const credentials = require('YOUR_GOOGLE_DRIVE_CREDENTIALS_FILE_PATH');
const bot = new TelegramBot(botToken, {polling: true});
const drive = google.drive({
version: 'v3',
auth: new google.auth.JWT(credentials.client_email, null, credentials.private_key, ['https://www.googleapis.com/auth/drive'])
});
bot.onText(/\/createfolder (.+)/, (msg, match) => {
const chatId = msg.chat.id;
const folderName = match[1];
drive.files.create({
resource: {
name: folderName,
mimeType: 'application/vnd.google-apps.folder',
parents: [googleDriveFolderId]
}
}, (err, file) => {
if (err) {
bot.sendMessage(chatId, 'Error creating folder');
} else {
bot.sendMessage(chatId, 'Folder created successfully');
}
});
});
bot.onText(/\/upload (.+),(.+),(.+)/, (msg, match) => {
const chatId = msg.chat.id;
const folderName = match[1];
const fileName = match[2];
const fileUrl = match[3];
const file = fs.createWriteStream(fileName);
const request = https.get(fileUrl, function(response) {
response.pipe(file);
file.on('finish', function() {
drive.files.create({
resource: {
name: fileName,
parents: [googleDriveFolderId]
},
media: {
body: fs.createReadStream(fileName)
}
}, (err, file) => {
if (err) {
bot.sendMessage(chatId, 'Error uploading file');
} else {
bot.sendMessage(chatId, 'File uploaded successfully');
}
fs.unlinkSync(fileName);
});
});
});
});
bot.onText(/\/deletefile (.+),(.+)/, (msg, match) => {
const chatId = msg.chat.id;
const folderName = match[1];
const fileName = match[2];
drive.files.list({
q: `'${googleDriveFolderId}' in parents and name='${fileName}' and trashed=false`
}, (err, response) => {
if (err || response.data.files.length == 0) {
bot.sendMessage(chatId, 'File not found');
} else {
const fileId = response.data.files[0].id;
drive.files.delete({
fileId: fileId
}, (err, response) => {
if (err) {
bot.sendMessage(chatId, 'Error deleting file');
} else {
bot.sendMessage(chatId, 'File deleted successfully');
}
});
}
});
});
Otomatis Upload File Ke google Drive command Module
npm install node-telegram-bot-api googleapisSemoga Malam Ini Yah Allah Dosa Dosa Dan orang orang melakukan zina di ampuni semua, dan Orang Orang Yang Melakukan kejahatan dalam Dunia dan orang Yang di Siksa dalam ahkirat di Bebaskan dan di ampuni agar terhindar dari siksa Neraka, Aamiin
https://mega.nz/file/M6kHxLQA
LEAKED BY : YINYAN & LEAKELITE
GSOUL V3.8
Key:7RmVxsHnjY84-dCUSF4wW7JV_jkZQ81Tbx6V5gItnwk
