O'zbek Stars | News
Qanday chiqibdi? π€«
Please open Telegram to view this post
VIEW IN TELEGRAM
O'zbek PHP
Shuni kodini tarqatamizmi? π€
Please open Telegram to view this post
VIEW IN TELEGRAM
π3π€1
php & Python yana boshqa kodlarni tekinga run qilishni orgataymi πΏ
Please open Telegram to view this post
VIEW IN TELEGRAM
π3π2
Rangli tugma
Success => π’
Danger => π΄
Primary => π΅
"style" => "primary" kok"style" => "success" yashil "style" => "danger" qizilSuccess => π’
Danger => π΄
Primary => π΅
@Ozbekphp obunachilari uchun kichik konkurs yutgan odamni kodi 1 oy tekinga hostingda turadi π βοΈ
qani go qatnashamizβοΈ
π π π π π π π π
qani go qatnashamiz
Please open Telegram to view this post
VIEW IN TELEGRAM
π57π49π€·ββ1
Shunday emojini tekinga yasash mumkin buning uchun atigi 3 ta doΚ»stingizga oΚ»z referalingizni tarqating
@TGSMakeBot
Please open Telegram to view this post
VIEW IN TELEGRAM
Qanday kod tarqatamiz? π³
Anonymous Poll
48%
auto habar π¦
56%
Userbot (yaxshirogidan)β
20%
Aloqa bot π¨βπ»
40%
Menga farqi yoqπ
π1
<?php
ob_start();
define('API_KEY', 'BOT_TOKEN_YOZING');
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'));
if(isset($update->message)){
$message = $update->message;
$text = $message->text;
$chat_id = $message->chat->id;
$message_id = $message->message_id;
if($text == "/start"){
bot('sendMessage', [
'chat_id' => $chat_id,
'text' => "Salom π€\n\nMenga istalgan matn yoki havola yuboring men uni tezda QR kodga aylantirib beraman.",
'parse_mode' => 'markdown',
'reply_to_message_id' => $message_id
]);
}
elseif(!empty($text)) {
$qr_url = "https://quickchart.io/qr?text=" . urlencode($text) . "&size=300";
bot('sendPhoto', [
'chat_id' => $chat_id,
'photo' => $qr_url,
'caption' => "β Sizning QR kodingiz tayyor\n\nBiriktirilgan matn: $text",
'reply_to_message_id' => $message_id
]);
}
}
?>
Please open Telegram to view this post
VIEW IN TELEGRAM
O'zbek PHP
<?php ob_start(); define('API_KEY', 'BOT_TOKEN_YOZING'); 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, CURLOβ¦
<?php
ob_start();
define('API_KEY', 'BOT_TOKEN_YOZING');
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'));
if(isset($update->message)){
$message = $update->message;
$text = $message->text;
$chat_id = $message->chat->id;
$message_id = $message->message_id;
if($text == "/start"){
bot('sendMessage', [
'chat_id' => $chat_id,
'text' => "Salom <tg-emoji emoji-id='5253555828409000478'>π</tg-emoji>\n\nMenga istalgan matn yoki havola yuboring men uni tezda QR kodga aylantirib beraman.",
'parse_mode' => 'HTML',
'reply_to_message_id' => $message_id
]);
}
elseif(!empty($text)) {
$qr_url = "https://quickchart.io/qr?text=" . urlencode($text) . "&size=300";
bot('sendPhoto', [
'chat_id' => $chat_id,
'parse_mode' => 'HTML',
'photo' => $qr_url,
'caption' => "<tg-emoji emoji-id='6025949887789538317'>πΌ</tg-emoji> Sizning QR kodingiz tayyor\n\n<tg-emoji emoji-id='5190679246657320586'>πΆβπ«οΈ</tg-emoji> Biriktirilgan matn: $text",
'reply_to_message_id' => $message_id
]);
}
}
?>
Please open Telegram to view this post
VIEW IN TELEGRAM
O'zbek PHP
<?php ob_start(); define('API_KEY', 'BOT_TOKEN_YOZING'); 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, CURLOβ¦
Please open Telegram to view this post
VIEW IN TELEGRAM
Assalomu alaykum va rahmatullohi va barakatuh!
Yangi hijriy yil kirib kelgani bilan barchangizni samimiy muborakbod etamiz.
Alloh taolo ushbu yangi yilni barchamiz uchun tinchlik, xotirjamlik, sog'lik, baraka va ezgu amallarga boy yil qilsin.
Yurtingiz tinch, xonadoningiz fayzli, qalbingiz iymonga to'la bo'lsin. Yangi hijriy yilda barcha ezgu niyat va duolaringiz ijobat bo'lsin.
Please open Telegram to view this post
VIEW IN TELEGRAM
π2