3 028
订阅者
-224 小时
-147 天
-8530 天
帖子存档
3 025
استضافة مجانية تشغل جميع لغات البرمجة بايثون و php وغيرها هواي
الرابط stackblitz.com
مشاركة للقناة حتئ انزل بعد استضافات
@LL_php
3 025
from pyrogram import Client
# معلومات حسابك
api_id = 43436475
api_hash = '3245yjnhdfsghrj7rju6ery5twwrf'
app = Client(
"my_bot",
api_id=api_id,
api_hash=api_hash
)
app.start()
while True:
from_chat_id = -1001577697954 #ايدي المجموعه الي تخمط اعضاء منها
my_chat_id = -1001825384988 #ايدي المجموعه الي تضيف بيها الاعضاء
members = []
for member in app.get_chat_members(from_chat_id):
members.append(member.user.id)
app.add_chat_members(chat_id=my_chat_id, user_ids=members)
app.run()
كود خمط اعضاء3 025
import logging
import time,re,json
from aiohttp import ClientSession
import aiohttp
from bs4 import BeautifulSoup
import random
import asyncio
import json
import requests
import unicodedata
import urllib3
def random_ip():
ips = ['46.227.123.', '37.110.212.', '46.255.69.', '62.209.128.', '37.110.214.', '31.135.209.', '37.110.213.'];
prefix = random.choice(ips)
return prefix + str(random.randint(1, 255))
class Downloads():
async def instagram(url):
result = []
RES = {}
data = {'q': url, 'vt': 'home'}
headers = {
'origin': 'https://snapinsta.io',
'referer': 'https://snapinsta.io/',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36',
'X-Forwarded-For': random_ip(),
'X-Client-IP': random_ip(),
'X-Real-IP': random_ip(),
'X-Forwarded-Host': 'snapinsta.io'
}
base_url = 'https://snapinsta.io/api/ajaxSearch'
async with ClientSession() as session:
async with session.post(base_url, data=data, headers=headers) as response:
# encoded_text = unicodedata.normalize('NFKD', await response.text()).encode('ascii', 'ignore')
# soup = BeautifulSoup(encoded_text, 'html.parser')
jsonn = json.loads(await response.text())
print(jsonn)
if jsonn['status'] == 'ok':
data = jsonn['data']
soup = BeautifulSoup(data, 'html.parser')
for i in soup.find_all('div', class_='download-items__btn'):
url = i.find('a')['href']
result.append({'url': url})
RES = {'status': True, 'result': result}
else:
RES = {'status': False, 'result': 'Error'}
print(json.dumps(RES, ensure_ascii=False, indent=4))
loop = asyncio.get_event_loop()
loop.run_until_complete(Downloads.instagram('https://www.instagram.com/p/CvPnxhKKt3R/?igshid=OGY3MTU3OGY1Mw=='))
هذا هم
3 025
<?php
ob_start();
error_reporting(0);
date_default_timezone_set("Asia/Baghdad");
header("Content-Type: application/json; charset=UTF-8");
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://instagram-post-and-reels-downloader.p.rapidapi.com/main/?url=" . $_GET['url'],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-RapidAPI-Host: instagram-post-and-reels-downloader.p.rapidapi.com",
"X-RapidAPI-Key: " // يجب وضع مفتاح RapidAPI هنا https://rapidapi.com/shahzodomonboyev0/api/instagram-post-and-reels-downloader
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
$data = json_decode($response, true);
echo json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
}
?>
تحميل انستا3 025
<?php
$data = init('test.mp3');
print_r($data);
function get_csrf_cookie(){
try{
$curl = curl_init();
curl_setopt_array($curl,[
CURLOPT_URL => 'https://www.aha-music.com/identify-songs-music-recognition-online/',
CURLOPT_HEADER => 1,
CURLOPT_RETURNTRANSFER => 1,
]);
$content = curl_exec($curl);
curl_close($curl);
preg_match('/_token" value="([^"\']+)/',$content,$csrf);
preg_match_all('/set-cookie: ([^;]+)/',$content,$cookie);
return isset($csrf[1]) ? ['LL_php' => $csrf[1] , 'LL_php_s' => implode('; ',$cookie[1])] : null;
}
catch (\Exception $ex){
return null;
}
}
function upload_file(string $path_to_file){
$csrf_cookie = get_csrf_cookie();
if (!$csrf_cookie) return 'Something is went wrong !';
$post = [
'files[]' => new CURLFile($path_to_file),
'_token' => $csrf_cookie['LL_php']
];
$curl = curl_init();
curl_setopt_array($curl,[
CURLOPT_URL => 'https://www.aha-music.com/identify-songs-music-recognition-online/upload',
CURLOPT_POST => 1,
CURLOPT_COOKIE => $csrf_cookie['LL_php_s'],
CURLOPT_POSTFIELDS => $post,
CURLOPT_RETURNTRANSFER => 1
]);
$res = curl_exec($curl);
return json_decode($res,1)['files'][0]['acrid'];
}
function init(string $path_to_file) : array{
$id = upload_file($path_to_file);
$content = file_get_contents("https://www.aha-music.com/identify-songs-music-recognition-online/upload/$id");
preg_match('/artist: "([^"]+)/',$content,$artist);
preg_match('/song: "([^"]+)/',$content,$song);
return isset($artist[1]) ? ['success' => 1 ,'file_name' => $path_to_file, 'artist' => $artist[1] , 'song' => $song[1]] : ['success' => 0 ,'file_name' => $path_to_file, 'message' => 'no result'];
}
كود يتعرف على الموسيقى من خلال تحميل ملف صوتي3 025
bot.send_message(message.chat.id, f"[{message.reply_to_message.from_user.first_name}](tg://user?id={message.reply_to_message.from_user.id})\nتم رفع الكتم!", reply_to_message_id=message.message_id, parse_mode=["Markdown"])
else:
bot.send_message(message.chat.id, error_reply)
else:
bot.send_message(message.chat.id, error_command)
@bot.message_handler(commands=['info'])
def info(message):
bot.send_message(message.chat.id, f"الملف الشخصي: [{message.reply_to_message.from_user.first_name}](tg://user?id={message.reply_to_message.from_user.id})\nاللقب: {message.reply_to_message.from_user.first_name}\nالرقم التعريفي: {message.reply_to_message.from_user.id}", reply_to_message_id=message.message_id, parse_mode=["Markdown"])
if name == "main":
bot.infinity_polling()
سوي ملف اسمه config.py
وخلي بي التوكن token = 'التوكن'
token = 'BOT_TOKEN' توكن بوتك بدل BOT_TOKEN3 025
import telebot
import config
import json
from time import time
bot = telebot.TeleBot(config.token)
users = {message.from_user.id: message.from_user.username}
file = open("users.json", "w")
json.dump(users, file)
file.close()
users.update({message.from_user.id: message.from_user.username})
file = open("users.json", "w")
json.dump(users, file)
file.close()
print(bot.get_me())
error_reply = "الأمر لا يعمل بدون رد"
error_command = "هذا الأمر غير متاح لك!"
@bot.message_handler(commands=['start', 'help'])
def start(message):
bot.send_message(message.chat.id, f"الأوامر الخاصة بي:\n/mute - إعطاء كتم\n/unmute - رفع الكتم\n/ban - حظر\n/unban - إلغاء الحظر\n/info - الحصول على معلومات عن المستخدم\n/ping - pong\n\nبالإضافة إلى ترحيب ووداع الأعضاء.", reply_to_message_id=message.message_id, parse_mode=["Markdown"])
@bot.message_handler(content_types=['new_chat_members', 'left_chat_member'])
def member(message):
bot.delete_message(message.chat.id, message.message_id)
if message.new_chat_members:
bot.send_message(message.chat.id, f"👋🏻مرحباً [{message.new_chat_members[-1].first_name}](tg://user?id={message.new_chat_members[-1].id})", parse_mode=["Markdown"])
elif message.left_chat_member:
bot.send_message(message.chat.id, f"🤞🏻وداعاً [{message.left_chat_member.first_name}](tg://user?id={message.left_chat_member.id})", parse_mode=["Markdown"])
@bot.message_handler(commands=['mute'])
def restrict_chat_member(message):
user = bot.get_chat_member(message.chat.id, message.from_user.id)
if user.status in ['administrator', 'creator']:
if message.reply_to_message:
bot.restrict_chat_member(message.chat.id, message.reply_to_message.from_user.id, until_date=time() + 1)
bot.send_message(message.chat.id, f"[{message.reply_to_message.from_user.first_name}](tg://user?id={message.reply_to_message.from_user.id})\nالعضو حصل على كتم بشكل دائم!", reply_to_message_id=message.message_id, parse_mode=["Markdown"])
else:
bot.send_message(message.chat.id, error_reply)
else:
bot.send_message(message.chat.id, error_command)
@bot.message_handler(commands=['ban'])
def kick_chat_member(message):
user = bot.get_chat_member(message.chat.id, message.from_user.id)
if user.status in ['administrator', 'creator']:
if message.reply_to_message:
bot.kick_chat_member(message.chat.id, message.reply_to_message.from_user.id)
bot.send_message(message.chat.id, f"[{message.reply_to_message.from_user.first_name}](tg://user?id={message.reply_to_message.from_user.id})\nالعضو محظور!", reply_to_message_id=message.message_id, parse_mode=["Markdown"])
else:
bot.send_message(message.chat.id, error_reply)
else:
bot.send_message(message.chat.id, error_command)
@bot.message_handler(commands=['unban'])
def unban_chat_member(message):
user = bot.get_chat_member(message.chat.id, message.from_user.id)
if user.status in ['administrator', 'creator']:
if message.reply_to_message:
bot.unban_chat_member(message.chat.id, message.reply_to_message.from_user.id)
bot.send_message(message.chat.id, f"[{message.reply_to_message.from_user.first_name}](tg://user?id={message.reply_to_message.from_user.id})\nالعضو مفكّر من الحظر!", reply_to_message_id=message.message_id, parse_mode=["Markdown"])
else:
bot.send_message(message.chat.id, error_reply)
else:
bot.send_message(message.chat.id, error_command)
@bot.message_handler(commands=['unmute'])
def restrict_chat_member(message):
user = bot.get_chat_member(message.chat.id, message.from_user.id)
if user.status in ['administrator', 'creator']:
if message.reply_to_message:
bot.restrict_chat_member(message.chat.id, message.reply_to_message.from_user.id, True, True, True, True)3 025
عمي استضافه فول كل يوم تكدر تجمع 10 عملات جمعتهن بدقيقه وكل 10 عملات تضل الاستضافه شغاله اسبوع يعني هذني ال 10 عملات تخلي بوتك 6 ايام شغاله وترجع تجمع بعد هم 10 ويضل شغال هواي +تشغل لغه بايثون وبعد 6 لغات ثانيه
3 025
بابا شبيكم ؟ البوت يبحث عن صور هيج اكتب كمثال افتارات بنات اجانب مو تروح تشمر متحركه تكلي مايبحث لو تشمر صورة غير تكتب نص 🤣
3 025
بوت تنزيل افتارات اي شي تريد ينزل بلغة php ملف البوت 🙈🔥
كلة تمبلر معرف البوت @FTRTTBOT
رأيكم بالبوت ؟
3 025
استضافة بوتات بايثون تشغل بوتات ديسكورد تلكرام يمكن تشغل ماجربتها لان تحتاج تسجيل بحساب ديسكورد
رابط الاستضافه
https://bot-hosting.net/
@LL_php
3 025
import os
import base64
import hashlib
import requests
import time
from telebot import TeleBot
from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton
bot = TeleBot(token='توكن') # توكن البوت
API_KEY = "KEY" # مفتاح Remini API
CONTENT_TYPE = "image/jpeg"
_TIMEOUT = 60
_BASE_URL = "https://developer.remini.ai/api"
def _get_image_md5_content(file_path: str) -> tuple[str, bytes]:
with open(file_path, "rb") as fp:
content = fp.read()
image_md5 = base64.b64encode(hashlib.md5(content).digest()).decode("utf-8")
return image_md5, content
def enhance_photo_and_send_link(file_path: str, chat_id: int):
image_md5, content = _get_image_md5_content(file_path)
with requests.Session() as session:
session.headers.update({"Authorization": f"Bearer {API_KEY}"})
response = session.post(
f"{_BASE_URL}/tasks",
json={
"tools": [
{"type": "face_enhance", "mode": "beautify"},
{"type": "background_enhance", "mode": "base"}
],
"image_md5": image_md5,
"image_content_type": CONTENT_TYPE
}
)
assert response.status_code == 200
body = response.json()
task_id = body["task_id"]
response = session.put(
body["upload_url"],
headers=body["upload_headers"],
data=content,
timeout=_TIMEOUT
)
assert response.status_code == 200
response = session.post(f"{_BASE_URL}/tasks/{task_id}/process")
assert response.status_code == 202
for i in range(50):
response = session.get(f"{_BASE_URL}/tasks/{task_id}")
assert response.status_code == 200
if response.json()["status"] == "completed":
break
else:
time.sleep(2)
output_url = response.json()["result"]["output_url"]
bot.send_photo(chat_id, output_url)
os.remove(file_path)
@bot.message_handler(commands=['start'])
def start_command(message):
keyboard = InlineKeyboardMarkup(row_width=2)
dev_button = InlineKeyboardButton("المطور 👨💻", url="https://t.me/WWW99W")
update_button = InlineKeyboardButton("التحديث ✅", url="https://t.me/LL_php")
keyboard.add(dev_button, update_button)
welcome_message = """
<b>مرحبًا بك في ريميني تحسين الصور تليجرام بوت.</b>
الرجاء إرسال لي صورة لتحسينها.
"""
bot.send_message(
message.chat.id,
welcome_message,
parse_mode='html',
reply_markup=keyboard
)
@bot.message_handler(content_types=['photo'])
def handle_photo(message):
photo = message.photo[-1]
file_path = os.path.join(os.getcwd(), f"{photo.file_unique_id}.jpg")
file_info = bot.get_file(photo.file_id)
file = requests.get(f'https://api.telegram.org/file/bot{bot.token}/{file_info.file_path}')
with open(file_path, 'wb') as new_file:
new_file.write(file.content)
bot.send_message(message.chat.id, "<b>جارٍ تحسين صورتك...</b>", parse_mode='html')
enhance_photo_and_send_link(file_path, message.chat.id)
@bot.message_handler(func=lambda message: True)
def handle_invalid_message(message):
bot.send_message(message.chat.id, "<b>لا يُسمح لي بتلقي رسائل نصية أو رموز تعبيرية.</b>\n\n<b>الرجاء إرسال فقط صور.</b>", parse_mode='html')
if name == 'main':
bot.polling(none_stop=True)
كود بوت تحسين الصور استبدل KEY بمفتاحك من موقع https://developer.remini.ai/
@LL_php3 025
يبيعون الاستضافات محد ينطي الاسماء مالتهن واني انزل مجاني سوي مشاركه للقناة 🙈🔥
