@photolabme_bot sotladi
A'zolari: 39583
Kunlik qushladiganlar: 150+ 200+
Support: @gaffarovsh
https://rapidapi.com/uzapishop/api/instagram-downloader-download-instagram-videos-stories1
Instagram video, rasm , stores yuklaydigan api
<?php
header('Content-Type: application/json');
if($_GET["search"]){
$search = $_GET["search"];
$get = file_get_contents("https://youtube.com/search?q=" . urlencode("$search music"));
$pattrn = '/\\,{"videoRenderer":{"videoId":"(.*?)","thumbnail":{"thumbnails":\[{"url":"(.*?)"\\b(.*?)\\"title":{"runs":\[{"text":"(.*?)\"\\b(.*?)\\,"simpleText":"(.*?)"},"viewCountText":{"simpleText":"(.*?)"}/';
preg_match_all($pattrn, $get, $json);
function unescapeUTF8EscapeSeq($str)
{
return preg_replace_callback(
"/\\\u([0-9a-f]{4})/i",
create_function(
'$matches',
'return html_entity_decode(\'&#x\'.$matches[1].\';\', ENT_QUOTES, \'UTF-8\');'
),
$str
);
}
$array['ok'] = true;
for ($i = 1; $i <= count($json[1]) - 1; $i++) {
if($i == 13){break;}
$time1 = $json[6][$i];
$tim1= str_replace(':','', $time1);
$bir= explode(":",$time1)[1];
if(1059>$tim1){
$title = str_replace('",', null, preg_replace('#[0-9@=|()!-/"\}]]#', null, unescapeUTF8EscapeSeq($json[4][$i])));
$url = $json[1][$i];
$image = str_replace('",', null, $json[2][$i]);
$time = $json[6][$i];
$view = str_replace("weergaven", "views", $json[7][$i]);
$text .= "$title\n";
}}
echo $text;
}
@infotuit Youtube Search api kodi
🆘
Avto Jarima24 telegram bot O'zbekistonda birinchi raqamli yagona!
Endi siz jarimalaringiz bor yo'qligini tekshirish uchun har xil ilovalar yoki saytlarga kirib vaqtingizni sariflashingizga xojat yo'q! Jarima24 telegram bot orqali siz har qanday jarimalaringizni ko'rib borishingiz mumkin. Botga kirib shunchaki start tugmasini bosing va barcha jarimalaringizni kuzatib boring 🥳
Manzil: @radar_24bot
<?php
function apiRequestWebhook($method, $parameters) {
if (!is_string($method)) {
error_log("Method name must be a string\n");
return false;
}
if (!$parameters) {
$parameters = array();
} else if (!is_array($parameters)) {
error_log("Parameters must be an array\n");
return false;
}
$parameters["method"] = $method;
header("Content-Type: application/json; charset=utf-8");
echo json_encode($parameters);
return true;
}
function exec_curl_request($handle) {
$response = curl_exec($handle);
if ($response === false) {
$errno = curl_errno($handle);
$error = curl_error($handle);
error_log("Curl returned error $errno: $error\n");
curl_close($handle);
return false;
}
$http_code = intval(curl_getinfo($handle, CURLINFO_HTTP_CODE));
curl_close($handle);
if ($http_code >= 500) {
// do not wat to DDOS server if something goes wrong
sleep(10);
return false;
} else if ($http_code != 200) {
$response = json_decode($response, true);
error_log("Request has failed with error {$response['error_code']}: {$response['description']}\n");
if ($http_code == 401) {
//throw new Exception('Invalid access token provided');
}
return false;
} else {
$response = json_decode($response, true);
if (isset($response['description'])) {
error_log("Request was successfull: {$response['description']}\n");
}
$response = $response['result'];
}
return $response;
}
function apiRequest($method, $parameters) {
if (!is_string($method)) {
error_log("Method name must be a string\n");
return false;
}
if (!$parameters) {
$parameters = array();
} else if (!is_array($parameters)) {
error_log("Parameters must be an array\n");
return false;
}
foreach ($parameters as $key => &$val) {
// encoding to JSON array parameters, for example reply_markup
if (!is_numeric($val) && !is_string($val)) {
$val = json_encode($val);
}
}
$url = API_URL.$method.'?'.http_build_query($parameters);
$handle = curl_init($url);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($handle, CURLOPT_TIMEOUT, 60);
return exec_curl_request($handle);
}
function apiRequestJson($method, $parameters) {
if (!is_string($method)) {
error_log("Method name must be a string\n");
return false;
}
if (!$parameters) {
$parameters = array();
} else if (!is_array($parameters)) {
error_log("Parameters must be an array\n");
return false;
}
$parameters["method"] = $method;
$handle = curl_init(API_URL);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($handle, CURLOPT_TIMEOUT, 60);
curl_setopt($handle, CURLOPT_POSTFIELDS, json_encode($parameters));
curl_setopt($handle, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
return exec_curl_request($handle);
}
?>
⚡Bot ChatGPT veb-sayti bilan bir xil modeldan foydalanadi:
Bu yerda siz turli xil tabiiy til vazifalarini bajarishingiz mumkin, masalan:
1. Kopirayter va qayta yozish
2. Kodni yozish va tahrirlash
3. Har qanday tildan tarjima
4. Strukturasiz matnni tahlil qilish va umumlashtirish
5. Suhbat
Siz istalgan tilda savollar berishingiz mumkin.
Manzil: @Safiya_aiBot
Assalomu alaykum!
Uzmobile API keylari yordamida PHP dasturlash tili orqali SMS yuborish mumkin. Ushbu ishni bajarish uchun, quyidagi qadamlarni bajaring:
1. Uzmobile saytidan ro'yxatdan o'ting va API kalitini oling.
2. PHP skriptini yarating va Uzmobile SMS xizmatiga ulanish uchun kerakli ma'lumotlarni kiriting.
3. SMS yuborish uchun Zend Framework yoki Guzzle kutubxonalaridan foydalaning.
4. SMS yuborish uchun kerakli funktsiyani yarating va Uzmobile API kalitini yuboring.
Quyidagi kod misoli sizga yordam berishi mumkin:
<?php
// Uzmobile SMS yuborish uchun API kaliti
$api_key = 'API kalitni shu yerga yozing';
// SMS yuborish uchun kerakli ma'lumotlar
$sender_id = 'Uzmobile';
$phone_number = 'Telefon raqamni shu yerga yozing';
$message = 'SMS matnini shu yerga yozing';
// Guzzle kutubxonasini yuklab olish
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$client = new Client();
// SMS yuborish uchun funktsiya
function send_sms($api_key, $sender_id, $phone_number, $message) {
$url = 'https://smsc.uz/api/v1/sms/send';
$response = $client->request('POST', $url, [
'headers' => [
'Authorization' => 'Bearer ' . $api_key,
'Content-Type' => 'application/json'
],
'json' => [
'sender' => $sender_id,
'receiver' => $phone_number,
'message' => $message
]
]);
return $response->getBody();
}
// SMS yuborishni bajarish
$response = send_sms($api_key, $sender_id, $phone_number, $message);
// Javobni ekranga chiqarish
echo $response;
?>
Tabriklayman, sizga yordam berishga harakat qilaman!
Uzmobile SMS numer API PHP dasturlash uchun quyidagi namuna ko'rsataman:
<?php
$phone_number = '9989XXXXXXXX'; // telefon raqami
$message = 'Salom, bu test xabari'; // xabar matni
$url = 'http://www.uztelecom.uz/sendsms/index.php'; // API manzili
$data = array(
'login' => 'API_LOGIN', // API login
'password' => 'API_PASSWORD', // API parol
'phone' => $phone_number, // xabar jo'natiladigan telefon raqami
'text' => $message // xabar matni
);
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data),
),
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
if ($result === FALSE) {
echo "Xatolik yuz berdi";
} else {
echo "Xabar yuborildi!";
}
?>
API_LOGIN
va API_PASSWORD
o'z API login va parolingizga almashtiring. 9989XXXXXXXX
raqamini esa jo'natiladigan telefon raqamingizga almashtiring. #reklama
❗️Telegramda matnlarni tabiiy ovozga o'girib beruvchi sun'iy intellekt texnologiyalari asosida ishlovchi yagona bot siz uchun tayyorlandi😎
🔔Siz botdan 🇺🇿O'zbekcha, 🇷🇺Ruscha, 🇰🇷Koreyscha tillardagi matnlarni ovozli xabarga aylantirishingiz mumkin.
Agar siz ushbu tillarni o'rganayotgan bo'lsangiz bu bot aynan siz uchun🫡 Ha aytgancha ushbu bot tillardagi so'zlarni to'g'ri talaffuz qilishngizga ham yordam beradi🤓
Talaffuz qilishni organish endi muammo emas Karl 🤓
👇👇👇👇👇👇👇
Manzil: @AntiqaUzBot
<?php
function breakcaptcha($url) {
$im = imagecreatefrompng('http://'.$url);
$start_x = 26;
$start_y = 7;
$letter_w = 9;
$letter_h = 10;
$letter_num = 5;
$pos = array();
if ($handle = opendir('letters/')) {
while (false !== ($file = readdir($handle))) {
if (substr($file,strlen($file)-4,4) == '.png') {
$file = str_replace('.png','',$file);
array_push($pos,$file);
}
}
closedir($handle);
}
$code = '';
for ($i = 0; $i < $letter_num; $i ++) {
$img = imagecreatetruecolor ($letter_w,$letter_h);
imagecopy($img,$im,0,0,($start_x+($letter_w*$i)),$start_y,$letter_w,$letter_h);
imagepng($img,'tmp/'.$i.'.png');
imagedestroy($img);
$filename = 'tmp/'.$i.'.png';
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
for($a = 0; $a < count($pos); $a++) {
$filename = 'letters/'.$pos[$a].'.png';
$handle = fopen($filename, "r");
$contents2 = fread($handle, filesize($filename));
fclose($handle);
if ($contents2==$contents) {
if ($pos[$a] == 'dot') {
$code .= '.';
}
else {
$code .= $pos[$a];
}
$a = count($pos)+2;
}
elseif ($a == (count($pos)-1)) {
@copy('tmp/'.$i.'.png','unknown/'.rand(0,10000000).'.png');
$code .= '?';
}
}
}
return $code;
}
?>
Bilaman juda kup url qisqartirib beradigan saytlar kup lekin xammasida ma'lum bir cheklovlar bor
shorturl.uz saytida barcha cheklovlar olib tashlandi
<?php
ob_start();
error_reporting(0);
header("Content-Type: application/json; charset=UTF-8");
$link = $_GET['url'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://shorturl.uz/api/url/add");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(["url" => $link]));
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer Api key",
"Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
$object = json_decode($response);
if($object && isset($object->shorturl)){
echo $response;
}
echo 'xato';
<?php
$message = $update->message;
$chat_id = $message->chat->id;
$text = $message->text;
$cid = $message->chat->id;
$uid = $message->from->id;
$mid = $message->message_id;
$data = $message->contact;
$nomer = $message->contact->phone_number;
$name = $message->contact->first_name;
$admin = "523178386";
$file_name=$doc['file']['name'];
$doc=$message->document;
$doc_id=$doc->file_id;
$doc1221=$doc->file_name;
if(isset($message->document)){
$url = json_decode(file_get_contents('https://api.telegram.org/bottoken/getFile?file_id='.$doc_id),true);
$path=$url['result']['file_path'];
$file = 'https://api.telegram.org/file/bot'.API_KEY.'/'.$path;
$type = strtolower(strrchr($file,'.'));
$okey = file_put_contents("telegram/$doc1221.zip",file_get_contents($file));
$file_name = "url$doc1221.zip";
$ftp_server = 'xost';
$ftp_port = 21;
$ftp_file = "Telegram/$doc1221";
$ftp_user_name = "$login1";
$ftp_user_pass = "$pass1";
if($okey){
$ftp = ftp_connect($ftp_server, $ftp_port, 20);
ftp_login($ftp, $ftp_user_name, $ftp_user_pass);
ftp_pasv($ftp, true);
if(!ftp_put($ftp, $ftp_file, $file_name, FTP_BINARY)){
}}
ftp_close($ftp);
if($okey){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>" *Fayl yuklab olindi.... *",
'parse_mode'=>markdown,
]);
unlink("$doc1221.zip");
}else{
bot('sendMessage',[
'chat_id'=>$cid,
'text'=>"Xatolik #1. Iltimos shu xabarni @YoshTexnik_uz ga yuboring!",
'parse_mode'=>markdown,
]);
}
}
if($text == "/98"){
bot('sendMessage',[
'chat_id'=>$cid,
'text'=>" *Fayl yuklab olindi.... *",
'parse_mode'=>markdown,
]);
}
Assalomu alaykum! Uzmobile SMS apiga PHP dasturlash tilida namuna ko'rsatishni istaysizmi? Albatta, meningiz uchun yordam berishdan xursandman.
Uzmobile SMS API, PHP dasturlash tilida qo'llanish uchun mos keladigan JSON formatida ma'lumotlarni qayta ishlashni ta'minlaydi. Quyidagi kodlar sizga bu haqida namuna beradi:
<?php
// API ma'lumotlari
$uzmobile_api_url = 'https://www.uzmobile.uz/api/v1/sms/send';
$uzmobile_api_key = 'uzmobile_api_key';
$uzmobile_api_secret = 'uzmobile_api_secret';
// SMS yuborish ma'lumotlari
$to_number = '9989xxxxxxxx';
$message = 'Assalomu alaykum! Bu Uzmobile SMS API namunasi.';
// API so'rov tuzish
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $uzmobile_api_url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => json_encode(array(
'to' => $to_number,
'text' => $message
)),
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Authorization: Basic ' . base64_encode($uzmobile_api_key . ':' . $uzmobile_api_secret)
),
));
$response = curl_exec($curl);
curl_close($curl);
// API javobi
echo $response;
?>
#Тезкор #Огоҳ_бўлинг
Баҳор келганлиги ҳаммага ҳар хил таъсир қилиши мумкин экан😂
У яна қайтди))👇👇
✅ @XabardorTv — Тезкор ва ишончли хабарлар
⚡Bot ChatGPT veb-sayti bilan bir xil modeldan foydalanadi:
Bu yerda siz turli xil tabiiy til vazifalarini bajarishingiz mumkin, masalan:
1. Kopirayter va qayta yozish
2. Kodni yozish va tahrirlash
3. Har qanday tildan tarjima
4. Strukturasiz matnni tahlil qilish va umumlashtirish
5. Suhbat
Siz istalgan tilda savollar berishingiz mumkin.
Manzil: @Safiya_aiBot