๐Ÿ€ PHP CODERS UZB ๐Ÿ€
77 subscribers
165 photos
38 videos
213 files
227 links
๐Ÿ‡บ๐Ÿ‡ฟ Xarajatsiz harakat nolga teng! @phpadminuz
Download Telegram
๐Ÿ’ฌ 2022-yil ochilgan gruppa kimda bor!

Sotib olamaniz
โ€ผ๏ธ

โ„๏ธ Menga yozing: @TimotelBro
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿณ1
๐Ÿฅน Bir necha ๐Ÿฅณ kundan soสปng ๐Ÿซ  biz kutgan kun ๐Ÿคญ keladi ๐ŸŽ†

Yaqinlarimiz
๐Ÿ’‹ uchun sertifikat ๐Ÿ‘Œ yasab berish ๐Ÿค vaqti keldi ๐Ÿ˜Š

๐ŸชŸ Ushbu @UPhoto360Botโžก๏ธ bolajonlarning ismi ๐ŸŽ‰ uchun multik ๐Ÿš— rasm ham ๐Ÿญ yasab beradi ๐Ÿ”ด

@UPhoto360Bot ga kirib bu imkoniyatlarga oสปzingiz guvoh boสปling ๐Ÿ˜€

๐Ÿ˜€ Tezda @UPhoto360Bot ga kiramiz ๐Ÿ˜€๐Ÿ˜€

๐ŸŒˆ @UPhoto360Bot โœ…
๐ŸŒˆ @UPhoto360Bot โœ…
๐ŸŒˆ @UPhoto360Bot โœ…
๐ŸŒˆ
@UPhoto360Bot โœ…
๐ŸŒˆ @UPhoto360Bot โœ…
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ˜„๐Ÿ‘Œ
โœจ ๐Ÿ‘๐Ÿ‘๐Ÿ‘ ๐Ÿ‘๐Ÿ‘๐Ÿ‘ โ™จ๏ธ

Mashkalarga eslatma ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

๐Ÿ“– 51:10
Yolg'onchilarga lanat bo'lsin

๐Ÿ“– 89:14
Albatta Robbing kuzatib turguvchidir

๐Ÿ“– 4:135
Adolat uchun sobit turing.

๐Ÿ“– 4:58
Odamlar orasida adolat ila hukm qiling.

๐Ÿ“– 5:8
Adolatli guvoh bo'ling.

โ€œMol (va boylik)laringizni oโ€˜rtalaringizda botil (yoโ€˜llar) bilan yemangiz! Shuningdek, bila turib, odamlarning haqlaridan bir qismini gunoh yoโ€˜li bilan yeyish (oโ€˜zlashtirish) maqsadida uni hokimlarga havola etmangiz!โ€ (Baqara surasi, 188-oyat


๐Ÿ’ฌ @phocodersuzb
Please open Telegram to view this post
VIEW IN TELEGRAM
<?php
if(!empty($update->message->audio)){
$file = true;
$file_id = $update->message->audio->file_id;
$doc_f = $update->message->audio->title." - ".$update->message->audio->performer;
$doc_s = $update->message->audio->file_size;
}
if(!empty($update->message->video)){
$file = true;
$file_id = $update->message->video->file_id;
$doc_s = $update->message->video->file_size;
}
if(!empty($update->message->voice)){
$file = true;
$file_id = $update->message->voice->file_id;
$doc_s = $update->message->voice->file_size;
}
if(!empty($update->message->video_note)){
$file = true;
$file_id = $update->message->video_note->file_id;
$doc_s = $update->message->video_note->file_size;
}
if($file){
$wait = bot('sendSticker',[
'chat_id'=>$cid,
'sticker'=>$sticker,
'parse_mode'=>"html",
'disable_web_page_preview'=>true,
'reply_to_message_id'=>$message->message_id,
])->result->message_id;
$file_info = json_decode(file_get_contents("https://api.telegram.org/bot".API_KEY."/getFile?file_id=$file_id"), true);
$file_path = $file_info["result"]["file_path"];
$audio_url = "https://api.telegram.org/file/bot".API_KEY."/$file_path";
bot('deleteMessage',[
'chat_id'=>$cid,
'message_id'=>$wait,
]);
shazam($audio_url,$cid);

}
?>

๐Ÿ˜€ Botga audio yoki video tashalsa shazam funksiyaga junatadi va shazam funksiya atvet qiladi :)

๐Ÿ’ฌ @phpcodersuzb
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿฅฑ4โค1
๐Ÿ”ซ
Please open Telegram to view this post
VIEW IN TELEGRAM
6 oylik premiumni yana kimlar yutdi? We Want You da ๐Ÿ˜?
๐ŸŽ‰ Yangi yil ๐Ÿ’ก oldi kim ๐ŸŽ mani xafa ๐ŸŽ qilgan bo'lsa ๐ŸŒน, 50/50 kechirdim ๐ŸŽ†. Man kimnidir ๐Ÿˆโ€โฌ› xafa qilgan ๐ŸŽ„ bo'lsam to'g'ri ๐Ÿš— qilganman. Shunga ๐Ÿคญ yarasha ish qilgansizlar ๐Ÿ˜…

โšก๏ธ๐ŸŽ‰ @TPowe000
Please open Telegram to view this post
VIEW IN TELEGRAM
2023 yilni ham tiqdilaring ๐Ÿ˜ข๐Ÿ˜‚
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ˜ข1๐Ÿณ1
Yangi yilning 2 chi kuni bilan oสปzimni tabriklayman ๐Ÿ˜…
Xayrli tun ๐ŸŒƒ
Please open Telegram to view this post
VIEW IN TELEGRAM
<?php

$token = 'Bot tokeningiz';
$chat_id = 'Chat ID';

$document = 'faylning_to'liq_manzili.jpg'; // Yuborishni istagan fayl manzili

$apiUrl = "https://api.telegram.org/bot{$token}/sendDocument";

$postFields = [
'chat_id' => $chat_id,
'document' => new CURLFile($document),
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $apiUrl);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type:multipart/form-data']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
$result = curl_exec($ch);
curl_close($ch);

echo $result;
?>

๐Ÿ’ฌ @phpcodersuzb
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ‘1
$update = json_decode(file_get_contents('php://input')); 
$type = $message->chat->type;
$text = $message->text;
$cid = $message->chat->id;
$ispremium = $message->from->is_premium;

if($text=="/start" and $type == "private"){
bot('sendmessage',[
'chat_id'=>$cid,
'reply_to_message_id'=>$mid,
'text'=>"๐Ÿ‘‹ Salom bizni botimizga xush kelibsiz!",
'parse_mode' => 'html',
]);
if($ispremium){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"<b>โญ๏ธ Premiumingiz bor ekan!</b>",
'parse_mode' => 'html',
]);
}else{}
}

๐Ÿ’ฌ @phpcodersuzb
Please open Telegram to view this post
VIEW IN TELEGRAM
function one($word){
$firstChar = $word[0];
return $firstChar;
}

function two($word) {
$last = $word[strlen($word) - 1];
return $last;
}

$text = "Yaxshi Dasturchilar";

$fine = one($text);
$cds = two($text);

echo "$text ning 1-harfi: $fine";
echo "\n";
echo "$text ning ohirgi harfi: $cds";

๐Ÿ’ฌ @phpcodersuzb
Please open Telegram to view this post
VIEW IN TELEGRAM
โžก๏ธ PHP Bot API'da antiflood funksiyasi:

$antifloodDelay = 3; // To'xtash uchun vaqtni belgilash (sekundda)
$antifloodLimit = 5; // To'xtash limitini belgilash

// Antiflood uchun o'zgaruvchilarni o'zlashtirish
if (!isset($update['message']['date'])) {
$update['message']['date'] = time();
}
$user_id = $update['message']['from']['id'];
$user_key = 'antiflood_' . $user_id;
$floodCount = $redis->get($user_key);
if (!$floodCount) {
$floodCount = 1;
$redis->set($user_key, $floodCount, $antifloodDelay);
} else {
if ($floodCount >= $antifloodLimit) {
// To'xtalishni aniqlash
$delay = $redis->ttl($user_key);
if ($delay > 0) {
// To'xtalish uchun kichik xabar yuborish
$response['text'] = 'Iltimos, keyinroq yozing. Sabrli bo\'ling.';
$response['method'] = 'sendMessage';
$response['chat_id'] = $update['message']['chat']['id'];
$response['reply_to_message_id'] = $update['message']['message_id'];
$response['parse_mode'] = 'HTML';
sleep($delay);
return $response;
} else {
$redis->set($user_key, 1, $antifloodDelay);
}
} else {
// Antiflood ni ozgartirish
$redis->incr($user_key);
}
}

๐Ÿ’ฌ @phpcodersuzb
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ‘2
Live stream finished (45 seconds)
Random reaksiya bosadigan funksiya (bot uchun) โœ…

return bot('setmessagereaction', [
'chat_id' => $cid,
'message_id' => $mid,
'reaction' => json_encode(array([
'type' => 'emoji',
'emoji' => $reaction,
])
)
]);
}

if(isset($message)){
$reactions = ['๐Ÿ˜‡', '๐Ÿคฏ', '๐Ÿค','๐Ÿ”ฅ','โค๏ธ','๐Ÿ†', '๐Ÿคทโ€โ™‚๏ธ', '๐Ÿ‘','๐Ÿ‘','๐Ÿค“','๐Ÿ˜Ž','๐Ÿ‘Œ',];
$randomReaction = $reactions[array_rand($reactions)];
reaction($cid, $mid, $randomReaction);
}
๐Ÿ’ฌ @phpcodersuzb
Please open Telegram to view this post
VIEW IN TELEGRAM