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 дней
Архив постов
❤️ Command:-
/read
✅ Wait For Answer:- On
➡️ Answer:- Send Me A Valid QR Code.
⚡️ BJS:-
var url="https://api.telegram.org/bot"+bot.token+&qu
HTTP.get({url:url, success:"/onL"})
❤️ Command:- /onL
⚡️BJS:-
var r = JSON.parse(content)
var imgurl =encodeURI("https://api.telegram.org/file/bot"+bot.token+"/"+r.result.file_path)
var apiUrl="https://api.qrserver.com/v1/read-qr-code/?fileurl="+imgurl
HTTP.get({url:apiUrl,success:"/success"})
❤️ Command:- /success
⚡️ BJS:-
var response =JSON.parse(content)[0].symbol[0].data
Bot.sendMessage(response)
👌 Invite Your Friends Here For More.🎚 Broadcast Code [Telebot Codes]
❣️ Command :
broadcast
📖 Code :
bot.replyText(u,"🔍 <b>Forward Your Message To Broadcast</b>")
Bot.handleNextCommand("/onBroadcast")
❣️ Command : /onBroadcast
📖 Code :
admin = 1789993737
if admin != u:
bot.sendMessage(chat_id=u,text="❌ Command not found")
else:
code = f"""bot.forwardMessage(chat_id=u,from_chat_id='''{message.chat.id}''',message_id='''{message.message_id}''')"""
task = Bot.broadcast(code = code)
bot.sendMessage("<b>📣 Broadcast Sent...</b>")
Bot.saveData(task,None)🎚 Auto Forward Bot [Telebot Codes]
❓ This Tpy Automatically Copy You Upcoming Channel Post Into Another Channel. Just Make The Bot Admin In Both Channels
❣️ Command:
/channel_updates
📖 TPY:
msgg = str(message)
if 'media_group_id' in msgg:
raise ReturnCommand
message_id = message['channel_post']['message_id']
chat_id = message['channel_post']['chat']['id']
url = f'https://api.telegram.org/bot{Bot.info().token}/copyMessage'
params = {
'chat_id': "target_chat_id",#target chat id
'from_chat_id': chat_id,
'message_id': message_id
}
response = HTTP.post(url, params=params)
# Just make the bot admin on your channel and edit the target chat id
» Make Sure To Replace "target_chat_id" With The Channel Id/Username Where You Wanted To Copy All Posts❓How to send bot to another telebotcreator account !
ℹ️ Command:
/sendBot
🫧 TPY:
if options == None:
bot.sendMessage("📧 <b>Enter Your Telebotcreator.com Email Address:</b>",parse_mode="html")
Bot.handleNextCommand("/sendBot",True)
else:
try:
Bot.Transfer(email=message.text,bot_id=Bot.info().bot_id)
bot.sendMessage(f"✅ <b>Bot Sent!\n\n📧 To Email:</b> <code>{message.text}</code>",parse_mode="html")
except:
bot.sendMessage("⛔ <b>Error! This Email not exist on server.</b>",parse_mode="html")🎚Multiple File Sharing Telegram Bot BJS code.
❣️Command:
/start
📖BJS
if(!params){
Api.sendMessage({ text: "/upload - To upload content and share it.",
reply_markup: JSON.stringify({
hide_keyboard: true
})
})
return;
}
if (params) {
var files = Bot.getProperty(params);
if (files && files.length > 0) {
files.forEach(file => {
switch (file.type) {
case "video":
Api.sendVideo({ video: file.file_id, caption: file.caption || undefined });
break;
case "photo":
Api.sendPhoto({ photo: file.file_id, caption: file.caption || undefined });
break;
case "audio":
Api.sendAudio({ audio: file.file_id, caption: file.caption || undefined });
break;
case "sticker":
Api.sendSticker({ sticker: file.file_id });
break;
case "document":
Api.sendDocument({ document: file.file_id, caption: file.caption || undefined });
break;
case "animation":
Api.sendAnimation({ animation: file.file_id, caption: file.caption || undefined });
break;
case "voice":
Api.sendVoice({ voice: file.file_id, caption: file.caption || undefined });
break;
}
});
} else {
Bot.sendMessage("No files to send.");
}
}
❣️ Command: /upload
👼Answer: Send your content for sharing!
👍🏻Wait for answer: False ❌
🫶🏻Keyboard: On✅
📖BJS:
Bot.runCommand('/handle')
❣️Command: /handle
👍🏻 Wait for answer: Off ✅
📖 BJS:
if (message == "✅") {
if (options && options.shrt) {
var filesList = Bot.getProperty(options.shrt, []);
if (filesList.length > 0) {
return Bot.sendMessage("Done!\nHere is your link: https://t.me/" + bot.name + "/?start=" + options.shrt);
} else {
return Bot.sendMessage("Error: No files uploaded to confirm.\nUse: /upload to upload. ");
}
} else {
return Bot.sendMessage("Error: No files uploaded to confirm.\nUse /upload to upload.");
}
}
var shrt = (new Date().getTime()).toString(36);
if (options && options.shrt) {
shrt = options.shrt;
}
var filesList = Bot.getProperty(shrt, []);
var fileEntry = {};
if (request.video && request.video.file_id) {
fileEntry = { type: "video", file_id: request.video.file_id, caption: request.caption || "" };
} else if (request.photo && request.photo.length > 0 && request.photo[0].file_id) {
fileEntry = { type: "photo", file_id: request.photo[0].file_id, caption: request.caption || "" };
} else if (request.audio && request.audio.file_id) {
fileEntry = { type: "audio", file_id: request.audio.file_id, caption: request.caption || "" };
} else if (request.sticker && request.sticker.file_id) {
fileEntry = { type: "sticker", file_id: request.sticker.file_id };
} else if (request.document && request.document.file_id) {
fileEntry = { type: "document", file_id: request.document.file_id, caption: request.caption || "" };
} else if (request.animation && request.animation.file_id) {
fileEntry = { type: "animation", file_id: request.animation.file_id, caption: request.animation.caption || "" };
} else if (request.voice && request.voice.file_id) {
fileEntry = { type: "voice", file_id: request.voice.file_id, caption: request.caption || "" };
}
if (Object.keys(fileEntry).length > 0) {
filesList.push(fileEntry);
Bot.setProperty(shrt, filesList, "json");
Bot.runCommand('/handle', { shrt: shrt });
} else {
Bot.sendMessage("No valid media file detected. Please send a valid media file.");
}🎚 Auto Forward Bot [Telebot Codes]
❓ This Tpy Automatically Copy You Upcoming Channel Post Into Another Channel. Just Make The Bot Admin In Both Channels
❣️ Command:
/channel_updates
📖 TPY:
msgg = str(message)
if 'media_group_id' in msgg:
raise ReturnCommand
message_id = message['channel_post']['message_id']
chat_id = message['channel_post']['chat']['id']
url = f'https://api.telegram.org/bot{Bot.info().token}/copyMessage'
params = {
'chat_id': "target_chat_id",#target chat id
'from_chat_id': chat_id,
'message_id': message_id
}
response = HTTP.post(url, params=params)
# Just make the bot admin on your channel and edit the target chat id
» Make Sure To Replace "target_chat_id" With The Channel Id/Username Where You Wanted To Copy All Posts
⚠️ Give credit if you are posting on your channel.
👨💻How To Use?
1. COPY CODE
2. OPEN HOSTING FILE MANAGER
3. MAKE NEW FILE WITH ANY NAME BUT .php EXTENSION IN END
4. PASTE CODE
5. USE LIKE https://yourdomain.com/gpt.php?backup=your_tg_id&?msg=your_text
🎁 ChatGpt API Code!! 👩💻
🎭 Make Your Own API..
<?php
// Define the external API URL
$apiUrl = 'https://nexus.0-0-0.click/';
// Fetch query parameters 'backup' and 'msg'
$userId = isset($_GET['backup']) ? $_GET['backup'] : null;
$msg = isset($_GET['msg']) ? $_GET['msg'] : null;
// Check if both parameters are provided
if (!$userId || !$msg) {
header('Content-Type: application/json');
echo json_encode(['error' => 'Both backup and msg parameters are required']);
http_response_code(400);
exit;
}
// Construct the URL with query parameters
$requestUrl = $apiUrl . '?backup=' . urlencode($userId) . '&msg=' . urlencode($msg);
// Initialize a cURL session
$ch = curl_init($requestUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Execute the request and fetch the response
$response = curl_exec($ch);
curl_close($ch);
// Check if cURL request was successful
if ($response === false) {
header('Content-Type: application/json');
echo json_encode([
'status' => false,
'message' => 'RESPONSE NOT FOUND, DUE TO ERROR PLEASE TRY AGAIN LATER',
'owner' => '@DEVSNP',
'backupId' => $userId
]);
http_response_code(500);
exit;
}
// Decode the JSON response from the external API
$responseData = json_decode($response, true);
// Prepare the response data
$result = [
'status' => true,
'message' => $responseData['message'] ?? 'No message',
'owner' => '@DEVSNP',
'backupId' => $userId,
'chatID' => $responseData['id'] ?? null
];
// Send JSON response
header('Content-Type: application/json');
echo json_encode($result);
?>
✅ Give Reactions For more Codes & API🎚 How to make encoder and decoder by params in bot through bots.business? (BJS) .
❣️ Command:
/encode
📖 Bjs:
Bot.sendMessage(Base64.encode(params))
❣️ Command: /decode
📖 Bjs:
Bot.sendMessage(Base64.decode(params))
🫶🏻 Example:
/encode Hi
/decode aGk=🎚 Get Channel ID By Using Channel Username [Telebot Code]
❣️ Command:
your_command
channel_username = "@DEVSNP" # Replace with your channel username
try:
channel_info = bot.getChat(channel_username)
channel_id = channel_info.id # This will give you the channel ID
bot.replyText(chat_id=message.chat.id, text=f"Channel ID: {channel_id}")
except Exception as e:
bot.replyText(chat_id=message.chat.id, text=f"❌ <b>Error:</b> <i>{str(e)}</i>", parse_mode="HTML")