ملفات Pydroid+php
3.52K subscribers
60 photos
20 videos
41 files
165 links
Download Telegram
<?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");

$externalApiUrl = 'https://dog.ceo/api/breeds/image/random';


$response = file_get_contents($externalApiUrl);

if ($response === false) {

$error = ['error' => 'Failed to fetch data from the external API'];
echo json_encode($error);
} else {

$data = json_decode($response, true);

if ($data && isset($data['message'])) {

$data['join'] = '@LL_php';


echo json_encode($data);
} else {

$error = ['error' => 'Failed to process data from the external API'];
echo json_encode($error);
}
}
?>

Api ينطيك صور جلاب عشوائي

@LL_php
🥰2😁2🙈2
<?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");

$api_url = 'https://api.thecatapi.com/v1/images/search';


$ch = curl_init($api_url);



curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);


$response = curl_exec($ch);


curl_close($ch);


if ($response === false) {
die('Error: Unable to fetch data from theCatAPI');
}


$data = json_decode($response, true);


if ($data === null) {
die('Error: Unable to parse JSON response');
}


$data['join'] = '@LL_php';


$json_output = json_encode($data);


echo $json_output;
?>

Api ينطيك صور بزازين
@LL_php
😁2
<?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");
$baseUrl = 'https://picsum.photos';
$width = 800;
$height = 600;
$imageUrl = "$baseUrl/$width/$height";

$response = [
'image_url' => $imageUrl,
'join' => '@LL_php'
];

header('Content-Type: application/json');
echo json_encode($response);
?>

Api ينطيك صور عشوائي
@LL_php
2
<?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");




function file_get_contents_no_ssl_verify($url) {
$options = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
),
);
return file_get_contents($url, false, stream_context_create($options));
}


$quotable_api_url = 'https://api.quotable.io/random';
$response = file_get_contents_no_ssl_verify($quotable_api_url);


if ($response !== false) {
$quote_data = json_decode($response);


if ($quote_data !== null) {

$quote = $quote_data->content;
$author = $quote_data->author;


$response_data = array(
'quote' => $quote,
'author' => $author,
'join Tg' => 'yourchannelname',
);


header('Content-Type: application/json');


echo json_encode($response_data);
} else {

http_response_code(500);
echo json_encode(array('error' => 'Internal Server Error'));
}
} else {

http_response_code(500);
echo json_encode(array('error' => 'Internal Server Error'));
}

?>

Api ينطيك اقتباسات بالنكليزي

@LL_php
4
تفاعلات ع المنشورات حتئ انشر ايبي ذكاء اصطناعي صاروخ بس تكتب النص ثواني يرد عليك اسرع api بتلي 🙈🔥
🥰11😱43🤯3👍2🔥2🤩2👎1🤬1🥱1
import requests
import json

while True:

user_text = input("أدخل النص (أو اضغط Enter للخروج): ")


if not user_text:
break


data = {'messages': [{'id': 'UpATjUb', 'content': user_text, 'role': 'user'}]}
data_json = json.dumps(data).encode()


headers = {
'authority': 'www.blackbox.ai',
'accept': '*/*',
'accept-language': 'ar-AE,ar;q=0.9,eu-ES;q=0.8,eu;q=0.7,et-EE;q=0.6,et;q=0.5,en-US;q=0.4,en;q=0.3',
'content-type': 'text/plain;charset=UTF-8',
'origin': 'https://www.blackbox.ai',
'referer': 'https://www.blackbox.ai/',
}

response = requests.post('https://www.blackbox.ai/api/chat', headers=headers, data=data_json)
print(response.text)

كود ذكاء اصطناعي يتذكر المحادثة

@LL_php
🥰3
ملفات Pydroid+php
import requests import json while True: user_text = input("أدخل النص (أو اضغط Enter للخروج): ") if not user_text: break data = {'messages': [{'id': 'UpATjUb', 'content': user_text, 'role': 'user'}]} data_json = json.dumps(data).encode()…
هذا الكود احسن من ChatGPT يسويلك اكواد برمجية اي شي بس ChatGPT يكلك ماسوي هيج كود هذا غير قانوني وهذا يسوي اي كود
7👍1
هذا كروب طاير اذا اكو شخص يعرف يرجعه.

https://t.me/TRHNEM
🤮6🔥4🙏3
import os
import requests
import telebot
from bs4 import BeautifulSoup

bot = telebot.TeleBot("BOTOTKEN")

@bot.message_handler(commands=['start'])
def send_welcome(message):
bot.reply_to(message, "مرحبًا! أرسل لي رابط MediaFire لتحميل الملف.")

def get_mediafire_download_link(url):
try:
page = requests.get(url)
soup = BeautifulSoup(page.content, 'html.parser')
download_link = soup.find('a', {'id': 'downloadButton'})['href']
return download_link
except Exception as e:
print(f"حدث خطأ أثناء جلب رابط التحميل: {e}")
return None

@bot.message_handler(func=lambda message: True)
def download_mediafire(message):
text = message.text
if text.startswith('http://www.mediafire.com/') or text.startswith('https://www.mediafire.com/'):
bot.reply_to(message, "جارٍ رفع الملف. يرجى الانتظار...")
file_url = text
direct_download_link = get_mediafire_download_link(file_url)

if direct_download_link:
file_response = requests.get(direct_download_link, stream=True, timeout=60)
file_name = direct_download_link.split('/')[-1]
file_size = int(file_response.headers['Content-Length'])

if file_size <= 50 * 1024 * 1024:
bot.send_chat_action(message.chat.id, 'upload_document')

with open(file_name, 'wb') as file:
file.write(file_response.content)

with open(file_name, 'rb') as file:
bot.send_document(message.chat.id, file, caption=f"إليك ملفك: {file_name}")

os.remove(file_name)
else:
bot.reply_to(message, "حجم الملف يتجاوز الحد الأقصى المسموح به من 50 ميجابايت.")
else:
bot.reply_to(message, "تعذر جلب رابط التحميل من MediaFire.")
else:
bot.reply_to(message, "يرجى تقديم رابط صحيح من MediaFire.")

bot.polling()

@LL_php
🥰5👍21
@LL_php.py
7.5 KB
معلومات الرقم

@LL_php
🥰32
<?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_php
2
bot('setMessageReaction', [
'chat_id' => chat_id,
'message_id' => message_id,
'reaction' => [
'type' => "emoji",
'emoji' => "👍"
]
]);

كود اضافة رد فعل لايك تكدر تغير الايموجي

@LL_php
👏21
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
🔥31
استضافة بوتات بايثون مجانيه تشغل بوتات ديسكورد تلكرام يمكن تشغل ماجربتها لان تحتاج تسجيل بحساب ديسكورد

رابط الاستضافه

https://bot-hosting.net/

@LL_php
بوت تنزيل افتارات اي شي تريد ينزل بلغة php ملف البوت 🙈🔥

كلة تمبلر معرف البوت @تحت الصيانه

رأيكم بالبوت ؟
🔥3
ملفات Pydroid+php
بوت تنزيل افتارات اي شي تريد ينزل بلغة php ملف البوت 🙈🔥 كلة تمبلر معرف البوت @تحت الصيانه رأيكم بالبوت ؟
بابا شبيكم ؟ البوت يبحث عن صور هيج اكتب كمثال افتارات بنات اجانب مو تروح تشمر متحركه تكلي مايبحث لو تشمر صورة غير تكتب نص 🤣