<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, OPTIONS");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
$url = "https://www.blackbox.ai/api/chat";
$headers = [
"Content-Type: application/json",
"alt-svc: h3=\":443\"; ma=86400",
"cf-cache-status: DYNAMIC",
"cf-ray: 83b147d30ae724a8-KTM",
"content-encoding: br",
"content-type: text/plain; charset=utf-8",
"date: Mon, 25 Dec 2023 13:02:49 GMT",
"rndr-id: 5dcfc605-427b-4e43",
"server: cloudflare",
"vary: Accept-Encoding",
"x-experimental-stream-data: false",
"x-render-origin-server: Render"
];
if (!isset($_GET['question'])) {
echo "No 'question' parameter provided.";
die();
}
$question = $_GET['question'];
$data = [
"messages" => [
[
"id" => "CxG2ZAW",
"content" => $question,
"role" => "user"
]
],
"id" => "CxG2ZAW",
"previewToken" => null,
"userId" => "2796af59-2e11-47e7-95f2-d93a3c71021c",
"codeModelMode" => true,
"agentMode" => []
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$response = curl_exec($ch);
$status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($status_code == 200) {
$output = [
"answer" => $response,
"join" => "@LL_php"
];
echo json_encode($output);
} else {
echo "Request failed with status code: $status_code";
}
curl_close($ch);
?>
ايبي ذكاء اصطناعي مربوط بموقع www.blackbox.ai
طريقه الاستخدام
https://LL_php/api.php?question=hi
@LL_php👍3🔥3😁1
اذا تريد استضافه بوتات تلي php سريعة ورخيصه ب 3$ مدري ب 2$ استخدم هاي نسخه المدفوعه اسم الاستضافة pantheonsite المجانيه مو سريعه فقط المدفوعه صاروخ.
👍2
<?php
class HttpClient
{
private $baseUrl;
private $apiKey;
public function __construct($baseUrl, $apiKey)
{
$this->baseUrl = $baseUrl;
$this->apiKey = $apiKey;
}
public function sendRequest($url, $method, $data = [])
{
$ch = curl_init($this->baseUrl . $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: ' . $this->apiKey,
]);
$response = curl_exec($ch);
curl_close($ch);
return $response;
}
}
class SttApi
{
private $httpClient;
public function __construct(HttpClient $httpClient)
{
$this->httpClient = $httpClient;
}
public function transcribeAudio($filePath)
{
$data = [
'file' => new \CurlFile($filePath),
];
return $this->httpClient->sendRequest('/api/v1/stt', 'POST', $data);
}
}
$apiKey = '[API_KEY]';
$baseUrl = 'https://mohir.ai';
$filePath = 'audio.mp3';
$http = new HttpClient($baseUrl, $apiKey);
$sttApi = new SttApi($http);
$response = $sttApi->transcribeAudio($filePath);
echo $response;
?>
تحويل الصوت الئ نص خلي مفتاحك من موقع https://mohir.ai
@LL_phpTelegram
ملفات Pydroid+php
س. @WWW99W
❤2
bot('setMessageReaction', [
'chat_id' => chat_id,
'message_id' => message_id,
'reaction' => [
'type' => "emoji",
'emoji' => "👍"
]
]);
كود اضافة رد فعل لايك تكدر تغير الايموجي
@LL_php👏2❤1
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_php🔥3❤1
استضافة بوتات بايثون مجانيه تشغل بوتات ديسكورد تلكرام يمكن تشغل ماجربتها لان تحتاج تسجيل بحساب ديسكورد
رابط الاستضافه
https://bot-hosting.net/
@LL_php
رابط الاستضافه
https://bot-hosting.net/
@LL_php
بوت تنزيل افتارات اي شي تريد ينزل بلغة php ملف البوت 🙈🔥
كلة تمبلر معرف البوت @تحت الصيانه
رأيكم بالبوت ؟
كلة تمبلر معرف البوت @تحت الصيانه
رأيكم بالبوت ؟
🔥3
ملفات Pydroid+php
بوت تنزيل افتارات اي شي تريد ينزل بلغة php ملف البوت 🙈🔥 كلة تمبلر معرف البوت @تحت الصيانه رأيكم بالبوت ؟
بابا شبيكم ؟ البوت يبحث عن صور هيج اكتب كمثال افتارات بنات اجانب مو تروح تشمر متحركه تكلي مايبحث لو تشمر صورة غير تكتب نص 🤣
ملفات Pydroid+php
بوت تنزيل افتارات اي شي تريد ينزل بلغة php ملف البوت 🙈🔥 كلة تمبلر معرف البوت @تحت الصيانه رأيكم بالبوت ؟
يعني مو حلو البوت مانزل ملفة ؟
ملفات Pydroid+php
استضافة بوتات بايثون مجانيه تشغل بوتات ديسكورد تلكرام يمكن تشغل ماجربتها لان تحتاج تسجيل بحساب ديسكورد رابط الاستضافه https://bot-hosting.net/ @LL_php
عمي استضافه فول كل يوم تكدر تجمع 10 عملات جمعتهن بدقيقه وكل 10 عملات تضل الاستضافه شغاله اسبوع يعني هذني ال 10 عملات تخلي بوتك 6 ايام شغال وترجع تجمع بعد هم 10 ويضل شغال هواي +تشغل لغه بايثون وبعد 6 لغات ثانيه
رابط الاستضافة
https://bot-hosting.net/
المصدر @LL_php
رابط الاستضافة
https://bot-hosting.net/
المصدر @LL_php
👍4
m.py
4.9 KB
❤2
<?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'];
}
كود يتعرف على الموسيقى من خلال تحميل ملف صوتي<?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);
}
?>
تحميل انستا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=='))
هذا هم
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=='))
هذا هم
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()
كود خمط اعضاء👍2
🔥3❤1
استضافة مجانية تشغل جميع لغات البرمجة بايثون و php وغيرها هواي
الرابط stackblitz.com
مشاركة للقناة حتئ انزل بعد استضافات
@LL_php
الرابط stackblitz.com
مشاركة للقناة حتئ انزل بعد استضافات
@LL_php
❤9🔥5👍3🖕3🥰2❤🔥1👏1😁1😍1
ملفات Pydroid+php
استضافة مجانية تشغل جميع لغات البرمجة بايثون و php وغيرها هواي الرابط stackblitz.com مشاركة للقناة حتئ انزل بعد استضافات @LL_php
يعني ليش ماتخلون تفاعلات من انشر منشور ؟ترا بعد مانزل اي شي
😁16👍4🖕3🤔1