Please open Telegram to view this post
VIEW IN TELEGRAM
1 15 7 7 2
bot yaratish.pdf
3.8 MB
4 yil oldin meni bot yaratishga qiziqtirib qoʻygan qoʻllanma buni kim tayyorlaganini bilmayman lekin ancha eski deyarli hech qayerdan qoʻllanma topolmagan paytimda ancha asqotgan u paytlar juda qiziq edi telegramda shunaqa narsalar qilish buni tuzib chiqgan odamga rahmat aytaman
Qisqasi meni dasturlashga olib kelgan qoʻllanma desak ham boʻladi
Qisqasi meni dasturlashga olib kelgan qoʻllanma desak ham boʻladi
1 34 9 8👍4 1
This media is not supported in your browser
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
1🔥1K 131 22 19 5
VIP KODLAR
Menimcha 204 ta ko'plik qildi 104 taga tushurdik endi go ozgina qoldi 🇺🇿
Please open Telegram to view this post
VIEW IN TELEGRAM
1 12 5 5👍1 1
VIP KODLAR
bot();
$bmessage_rtm = $bmessage->reply_to_message;
$bmessage_rtm_photo = $bmessage_rtm->photo;
$bmessage_rtm_photo_file_id = $bmessage_rtm_photo[sizeof($bmessage_rtm_photo)-1]->file_id;
if($bmessage_text == ".ok"){
if($bmessage_cid != $bmessage_fid){
if(isset($bmessage_rtm_photo_file_id)){
bot('editMessageMedia', [
'business_connection_id'=>$bmessage_id,
'chat_id' => $bmessage_cid,
'message_id' => $bmessage_mid,
'media' => json_encode([
'type' => 'photo',
'media' => "$bmessage_rtm_photo_file_id",
'has_spoiler' => true,
])
]);
}
}
}
if($text == "/test"){
$midi = bot("sendMessage",[
"chat_id"=>$chat_id,
"text"=>"<b>test</b>",
"parse_mode"=>"html",
])->result->message_id;
sleep(1);
$tak = bot('editMessageMedia', [
'chat_id'=>$chat_id,
'message_id' => $midi,
'media' => json_encode([
'type' => 'photo',//video, document, animation
'media' => 'https://asilbekcoder.uz/7BFijvQZdBqZYaaliak.png',
]),
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"mediani oʻzgartirish",'callback_data'=>"medn"]],
[['text'=>"mediani text qilish",'callback_data'=>"mede"]],
]
])
]);
}
if($data == "medn"){
bot('editMessageMedia', [
'chat_id'=>$chat_id2,
'message_id' => $message_id2,
'media' => json_encode([
'type' => 'photo',//video, document, animation
'media' => 'https://telegra.ph/file/dc740c72949ff9299fda8.jpg',
]),
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"mediani text qilish",'callback_data'=>"mede"]],
]
])
]);
}
if($data == "mede"){
$tak = bot('editMessageText', [
'chat_id'=>$chat_id2,
'message_id' => $message_id2,
"text"=>"<b>test edit</b>",
"parse_mode"=>"html",
]);
bot("sendMessage",[
"chat_id"=>$chat_id2,
"text"=>"<pre>".json_encode($tak, JSON_PRETTY_PRINT)."</pre>",
"parse_mode"=>"html",
]);
}Please open Telegram to view this post
VIEW IN TELEGRAM
5 23 4 4
Forwarded from JavaScript
Men website yasashim kerak emas, men muammoni yechishim kerak.
Men ko‘p pul topishim kerak emas, men boshqalarga ko‘proq pul topishiga yordam berishim kerak.
Men dizaynni chiroyli qilishim kerak emas, men foydalanuvchiga qulaylik yaratishim kerak.
@abs_javascript
Men ko‘p pul topishim kerak emas, men boshqalarga ko‘proq pul topishiga yordam berishim kerak.
Men dizaynni chiroyli qilishim kerak emas, men foydalanuvchiga qulaylik yaratishim kerak.
@abs_javascript
1 7 3 3🔥2
Forwarded from Chatbot News
This media is not supported in your browser
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
1 3👍1 1 1
ICTWEEK 2025 namoyishiga bordim tasurotlarim yaxshi lekin 2023-yildagi tasurotimchalik emas
Men mehmon yani tomoshabin boʻlib bordim lekin bir kun kelib men oʻzimni "start up" loyihamni koʻrsatish uchun boraman
Men mehmon yani tomoshabin boʻlib bordim lekin bir kun kelib men oʻzimni "start up" loyihamni koʻrsatish uchun boraman
1 8 3🔥2 2
This media is not supported in your browser
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
1 3 3 2
VIP KODLAR
⏰ Bu rasmli soat kodini tarqatamizmi?
<?php
header("Content-Type: image/png");
date_default_timezone_set('Asia/Tashkent');
$width = 1200;
$height = 800;
$image = imagecreatetruecolor($width, $height);
$black = imagecolorallocate($image, 0, 0, 0);
$white = imagecolorallocate($image, 255, 255, 255);
$red = imagecolorallocate($image, 255, 0, 0);
$blue = imagecolorallocate($image, 173, 216, 230);
imagefill($image, 0, 0, $black);
$cx = $width / 2;
$cy = $height / 2;
$radius = 350;
imagesetthickness($image, 3);
for ($i = 0; $i < 60; $i++) {
$angle = deg2rad($i * 6 - 90);
$x1 = $cx + cos($angle) * ($radius - 10);
$y1 = $cy + sin($angle) * ($radius - 10);
$x2 = $cx + cos($angle) * ($radius - ($i % 5 == 0 ? 35 : 20));
$y2 = $cy + sin($angle) * ($radius - ($i % 5 == 0 ? 35 : 20));
imageline($image, $x1, $y1, $x2, $y2, $white);
}
imagesetthickness($image, 1);
$font = __DIR__ . "/arial.ttf";
for ($i = 1; $i <= 12; $i++) {
$angle = deg2rad($i * 30 - 90);
$x = $cx + cos($angle) * ($radius - 70);
$y = $cy + sin($angle) * ($radius - 70);
if($i == 10){
imagettftext($image, 30, 0, $x-17, $y+15, $white, $font, $i);
}elseif($i == 11){
imagettftext($image, 30, 0, $x-18, $y+15, $white, $font, $i);
}elseif($i == 12){
imagettftext($image, 30, 0, $x-25, $y+15, $white, $font, $i);
}else{
imagettftext($image, 30, 0, $x-15, $y+15, $white, $font, $i);
}
}
$h = date("G");
$m = date("i");
$s = date("s");
$hour_angle = deg2rad(($h % 12) * 30 + $m * 0.5 - 90);
$minute_angle = deg2rad($m * 6 + $s * 0.1 - 90);
$second_angle = deg2rad($s * 6 - 90);
$hour_len = 160;
$hx = $cx + cos($hour_angle) * $hour_len;
$hy = $cy + sin($hour_angle) * $hour_len;
$hourPoly = [
$cx + cos($hour_angle + 0.4) * 15, $cy + sin($hour_angle + 0.4) * 15,
$hx, $hy,
$cx + cos($hour_angle - 0.4) * 15, $cy + sin($hour_angle - 0.4) * 15,
];
imagefilledpolygon($image, $hourPoly, 3, $blue);
$minute_len = 250;
$mx = $cx + cos($minute_angle) * $minute_len;
$my = $cy + sin($minute_angle) * $minute_len;
$minutePoly = [
$cx + cos($minute_angle + 0.2) * 13, $cy + sin($minute_angle + 0.2) * 12,
$mx, $my,
$cx + cos($minute_angle - 0.2) * 13, $cy + sin($minute_angle - 0.2) * 12,
];
imagefilledpolygon($image, $minutePoly, 3, $blue);
$second_len = 300;
$back_len = 60;
$sx = $cx + cos($second_angle) * $second_len;
$sy = $cy + sin($second_angle) * $second_len;
$secondPoly = [
$cx + cos($second_angle + 0.13) * 10, $cy + sin($second_angle + 0.13) * 10,
$sx, $sy,
$cx + cos($second_angle - 0.13) * 10, $cy + sin($second_angle - 0.13) * 10,
];
imagefilledpolygon($image, $secondPoly, 3, $red);
imagesetthickness($image, 3);
$bx = $cx - cos($second_angle) * $back_len;
$by = $cy - sin($second_angle) * $back_len;
imageline($image, $cx, $cy, $bx, $by, $red);
imagefilledellipse($image, $cx, $cy, 20, 20, $red);
imagepng($image);
imagedestroy($image);
Please open Telegram to view this post
VIEW IN TELEGRAM
1 6 4 3
Saytga flood request yuborish yani ko’proq so’rov yuborish
©️ Manba: @vip_kodlar
🔧 Dasturchi: @cysze
<?php
echo "start\n";
$urls = array_fill(0, 100, 'https://example.com/'); // 100 so'rov yuborish
$mh = curl_multi_init();
$chs = [];
foreach ($urls as $i => $url) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0");
curl_multi_add_handle($mh, $ch);
$chs[$i] = $ch;
}
$running = null;
do {
curl_multi_exec($mh, $running);
curl_multi_select($mh, 1.0);
} while ($running > 0);
foreach ($chs as $ch) {
$http = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$body = curl_multi_getcontent($ch);
echo "HTTP: $http, len: ".strlen($body)."\n";
curl_multi_remove_handle($mh, $ch);
curl_close($ch);
}
curl_multi_close($mh);
echo "end";
Please open Telegram to view this post
VIEW IN TELEGRAM
1 6 4 4 2 1
Shifrlash kodlari yani hash_algos() bilan
Natijasi:
Ishlatish uchun
yani tepada chiqgan natijadan kerakli shifrlash kodini va kodlash uchun text ni olib hash() da ishlatish
eng qisqa shifrlash kodini buni ishlatin ko'rishingiz mumkin
©️ Manba: @vip_kodlar
🔧 Dasturchi: @cysze
print_r(hash_algos());
Natijasi:
Array
(
[0] => md2
[1] => md4
[2] => md5
[3] => sha1
[4] => sha224
[5] => sha256
[6] => sha384
[7] => sha512/224
[8] => sha512/256
[9] => sha512
[10] => sha3-224
[11] => sha3-256
[12] => sha3-384
[13] => sha3-512
[14] => ripemd128
[15] => ripemd160
[16] => ripemd256
[17] => ripemd320
[18] => whirlpool
[19] => tiger128,3
[20] => tiger160,3
[21] => tiger192,3
[22] => tiger128,4
[23] => tiger160,4
[24] => tiger192,4
[25] => snefru
[26] => snefru256
[27] => gost
[28] => gost-crypto
[29] => adler32
[30] => crc32
[31] => crc32b
[32] => fnv132
[33] => fnv1a32
[34] => fnv164
[35] => fnv1a64
[36] => joaat
[37] => haval128,3
[38] => haval160,3
[39] => haval192,3
[40] => haval224,3
[41] => haval256,3
[42] => haval128,4
[43] => haval160,4
[44] => haval192,4
[45] => haval224,4
[46] => haval256,4
[47] => haval128,5
[48] => haval160,5
[49] => haval192,5
[50] => haval224,5
[51] => haval256,5
)
Ishlatish uchun
echo hash('fnv132',"salom"); // natija: 98bd771fyani tepada chiqgan natijadan kerakli shifrlash kodini va kodlash uchun text ni olib hash() da ishlatish
eng qisqa shifrlash kodini buni ishlatin ko'rishingiz mumkin
$hash = hash_algos();
$text = "salom";
foreach($hash as $res){
echo "$res - ".hash($res, $text)."\n";
}
Please open Telegram to view this post
VIEW IN TELEGRAM
1 5 5 4 1