Tez Orada Qaytamizโ
Please open Telegram to view this post
VIEW IN TELEGRAM
Kanalga Admin kerak Kod Emas Funk Tashlab turadigan #coment
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
API o'zi nima ?
๐ฉUshbu videoimizda API haqida misollar bilan ko`rsatib tushuntirib beramiz.
๐ฐ๐ฅ๐๐ฉ๐ข๐๐๐๐ก๐๐ฆ๐
๐ฐ๐๐ข๐ฌ๐๐๐๐ ๐๐๐ข๐
โก๏ธ๐๐๐๐: @RaKUZEN_UZ
//Qr Code Yasash Funk
//
Manba @Azizbeekh
if($text == "โฌ๏ธ QR kod tayyorlash"){
addstep("qrcode",1,$chat_id);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"<b>โ๐ป QR kod tayyorlash uchun matn yoki soสปz yuboring!</b>",
'parse_mode'=>'html',
'reply_markup'=>$back
]);
exit;
}
if($text!= "/start" and $text!= "โ๏ธ Ortga" and $step1 == "qrcode"){
addstep("null",1,$chat_id);
bot('sendPhoto',[
'chat_id'=>$chat_id,
'photo'=>"https://qr-code.ir/api/qr-code?s=5&e=M&t=P&d=".urlencode($text)."",
'caption'=>"<b>โ QR kod tayyor!
โฌ๏ธ QR koddagi soโz: $text</b>",
'parse_mode'=>'html',
'reply_markup'=>$services
]);
exit;
}
?>
Forwarded from โขUzMaxBoy ๐ฒ (๐ฅ๐ฎ๐ธ๐๐ญ๐ฒ๐ป ๐ {โง {ห)
Forwarded from ะะฐัะธัะทะฐะตะฒ | Matirzayev.uz (ะคััะบะฐั ะะฐััะธะทะฐะตะฒ)
<?php
define('API_KEY', ''); //Bot tokeni
function bot($method, $datas = [])
{
$url = "https://api.telegram.org/bot" . API_KEY . "/" . $method;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $datas);
$res = curl_exec($ch);
if (curl_error($ch)) {
var_dump(curl_error($ch));
} else {
return json_decode($res);
}
}
@$update = json_decode(file_get_contents('php://input'));
@$message = $update->message;
@$chat_id = $message->chat->id;
@$text = $message->text;
@$mid = $message->message_id;
bot('setMessageReaction', [
'chat_id' => $chat_id,
'message_id' => $mid,
'reaction' => json_encode([[
'type' => 'emoji',
'emoji' => '๐'
]]),
]);
?>
๐1
Forwarded from ะะฐัะธัะทะฐะตะฒ | Matirzayev.uz (ะคััะบะฐั ะะฐััะธะทะฐะตะฒ)
Mana bu kodni kimdur so'ragan edi. Oddiy bo'lsaham kerakli kod.
Bu funksiya gruhda yoki shaxsiy chatda yuborilgan xar qanday xabarga reaksiya bildiradi.
Guruh: @matirzayev_gr
Kanal: @MatirzayevUz
Bu funksiya gruhda yoki shaxsiy chatda yuborilgan xar qanday xabarga reaksiya bildiradi.
Guruh: @matirzayev_gr
Kanal: @MatirzayevUz
Raqam Suredigan Function Birorta Tugmaga Quyib quyasilar va bitta
mkdir("number");
Ochselar Boldi
mkdir("number");
Ochselar Boldi
function number($cid){
$raqami = file_get_contents("number/$cid.txt");
if($raqami == true){
return true;
}else{
file_put_contents("step/$cid.step",'request_contact');
bot("sendMessage",[
"chat_id"=>$cid,
'text'=>"๐ฒ <b>Botdan ro'yxatdan o'tish uchun quyidagi baza/tugma orqali telefon raqamingizni yuboring:</b>",
'parse_mode'=>'html',
'reply_markup'=>json_encode([
'resize_keyboard'=>true,
'keyboard'=>[
[['text'=>"๐ Telefon raqamni yuborish","request_contact"=>true]],
]]),
]);
exit();
return false;
}
}
//Manba @Azizbeekh
if($step=="request_contact"){
$phone = str_replace("+","","$phone");
if((strlen($phone)==12) and (mb_stripos($phone,"998")!==false)){
if($contact_id == $cid){
file_put_contents("number/$cid.txt","$phone");
bot("sendMessage",[
"chat_id"=>$cid,
"text"=>"<b>โ
Telefon raqamingiz qabul qilindi:</b> $phone",
"parse_mode"=>"html",
'reply_markup'=>$menu,
]);
unlink("step/$cid.step");
exit();
}else{
bot('sendMessage',[
'chat_id'=>$cid,
'text'=>"๐ฒ <b>Botdan ro'yxatdan o'tish uchun quyidagi baza/tugma orqali telefon raqamingizni yuboring:</b>",
'parse_mode'=>'html',
'reply_markup'=>json_encode([
'resize_keyboard'=>true,
'keyboard'=>[
[['text'=>"๐ Telefon raqamni yuborish","request_contact"=>true]],
]]),
]);
exit();
}
}else{
bot('sendMessage',[
'chat_id'=>$cid,
'text'=>"<b>โ Kechirasiz, raqam qabul qilinmadi!</b>",
'parse_mode'=>'html',
'reply_to_message_id'=>$mid,
'reply_markup'=>json_encode([
'remove_keyboard'=>true,
]),
]);
unlink("step/$cid.step");
exit();
}
}๐1
Please open Telegram to view this post
VIEW IN TELEGRAM
<!DOCTYPE html>
<html>
<head>
<title> #baxriddinovich_uz </title>
<style type="text/css">
.card {
box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.3), 0 7px 21px 0 rgba(0, 0, 0, 0.20);
width: 300px;
font-family: sans-serif;
color: #f8f9f9;
}
.card-header {
padding: 10px;
font-size: 18px;
background: #311b92;
}
.card-body {
padding: 10px;
background: #d50000;
}
</style>
</head>
<body>
<div class="card">
<div class="card-header">
https://t.me/Baxriddinovich_uzโ<br>
Guruh kanali: @ChatGruppaUzb<br>
https://t.me/PersonalCoder
</div>
<div class="card-body">
Siz PHP kodlari kanali va guruhiga a'zo bo'ling. Web haqida ko'plab ma'lumotlar bizning kanal va guruhda e'lon qilib boriladi.
</div>
</div>
</body>
</html>
<html>
<head>
<title> #baxriddinovich_uz </title>
<style type="text/css">
.card {
box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.3), 0 7px 21px 0 rgba(0, 0, 0, 0.20);
width: 300px;
font-family: sans-serif;
color: #f8f9f9;
}
.card-header {
padding: 10px;
font-size: 18px;
background: #311b92;
}
.card-body {
padding: 10px;
background: #d50000;
}
</style>
</head>
<body>
<div class="card">
<div class="card-header">
https://t.me/Baxriddinovich_uzโ<br>
Guruh kanali: @ChatGruppaUzb<br>
https://t.me/PersonalCoder
</div>
<div class="card-body">
Siz PHP kodlari kanali va guruhiga a'zo bo'ling. Web haqida ko'plab ma'lumotlar bizning kanal va guruhda e'lon qilib boriladi.
</div>
</div>
</body>
</html>
๐1
๐ Taklifi #konkurs Boshlandi๐ฅณ
๐Konkursga qo'yilgan yutuqlarKeyinroq e'lon qilinadi๐คซ
1. @Dasturchi_Abdulloh -
๐Konkurs shartlari (@PersonalCoder) shu kanalga obuna bo'lish va sizga berilgan havolaga do'stlaringizni taklif qilishdan iborat.
๐Konkursga qo'yilgan yutuqlar
1. @Dasturchi_Abdulloh -
https://t.me/+ewZ1xm1SM6VlMGFiโ Konkursda qatnashish uchun quyidagi (QO'SHILISHโ) tugmani bosing๐
Luboy Sayt Yasab Bladiganlar Bormi soqqali ish bor faqat qilib biladiganlar Yozla #coment
Forwarded from ะะฐัะธัะทะฐะตะฒ | Matirzayev.uz (ะคััะบะฐั ะะฐััะธะทะฐะตะฒ)
@Ton_uzbot.zip
7.1 KB
Assalomu aleykum. ๐
Mana @Ton_uzbot bot kodi. Bir vahtlar zerikish natijasida yuzaga kelgan kod. Ishlata olganlar reaksiya bosamiz. Postni maksimal tarqatamiz. Ichida yangi dasturchilar uchun kerakli kodlar bor. ๐ฅ
Kanal ๐ | Admin ๐ฎโโ๏ธ | Gruppa ๐
Mana @Ton_uzbot bot kodi. Bir vahtlar zerikish natijasida yuzaga kelgan kod. Ishlata olganlar reaksiya bosamiz. Postni maksimal tarqatamiz. Ichida yangi dasturchilar uchun kerakli kodlar bor. ๐ฅ
Kanal ๐ | Admin ๐ฎโโ๏ธ | Gruppa ๐
๐ Salom hammaga
๐๏ธ Yangi loyiham
๐ค Useri: @Avtoprosmotrbot
๐ Qoshimcha malumot: Kanal postlariga avto nak (korish va reaksiya) urib beradi
๐ Admin paneli: โ๏ธ mavjud
๐จ Bot kerak bolsa: @YalqovBola
๐๏ธ Yangi loyiham
๐ค Useri: @Avtoprosmotrbot
๐ Qoshimcha malumot: Kanal postlariga avto nak (korish va reaksiya) urib beradi
๐ Admin paneli: โ๏ธ mavjud
๐จ Bot kerak bolsa: @YalqovBola