$count= bot("getChatMembersCount",[
'chat_id'=>"@WonderfulCoders",//kanaliz userini qoyasiz
])->result;
bot("setChatDescription",[
'chat_id'=>"@WonderfulCoders",
'description'=>"
π Assalomu alaykum hammaga !
Kanalga azo bo'lganingiz uchun raxmat!
π Obunachilar : $count ta
β³ Soat : $soat
Hurmat bilan: @WonderfulCoders jamoasi
Β©οΈ 2023-2024
"
]);Kanal bio si uchun soat
Cron qilish esdan chiqmasin
@WonderfulCodersπΊπΏ > #function
π3β€1π₯1
@SmmEnginerBot
@SiteCreatorUzBot
@NewNotCoinBot
@BestProgerBot
Hammasi sotiladi omoqcila comment yoki @BestProgerBot β
@SiteCreatorUzBot
@NewNotCoinBot
@BestProgerBot
Hammasi sotiladi omoqcila comment yoki @BestProgerBot β
π3β€2π₯2
<?php
// Bot tokeni qoβyiladi
define('BOT_TOKEN', 'TOKEN'); // TOKEN joyiga tokeningizni qoβying.
$update = json_decode(file_get_contents('php://input'), true);
if (isset($update['message'])) {
$chat_id = $update['message']['chat']['id'];
$text = $update['message']['text'];
if ($text == '/random') {
// 1 dan 10 gacha boβlgan tasodifiy sonni yaratish
$random_number = rand(1, 10);
// Tasodifiy raqamni yuborish
sendMessage($chat_id, 'Sizning tasodifiy raqamingiz: ' . $random_number);
}
}
function sendMessage($chat_id, $text) {
$url = 'https://api.telegram.org/bot' . BOT_TOKEN . '/sendMessage';
$data = array(
'chat_id' => $chat_id,
'text' => $text
);
$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);
}
?>
#function
Manba: @PHPFunctionn
π3β€2π₯2
yangi MyClass()->method() qavssiz
O'tgan yilning oxirida men PHP sintaksisiga o'zgartirish kiritdim, bu bizga ularga kirish uchun qavslar ichiga new ifodalarni o'rashdan qochish imkonini beradi:
Yakuniy sinf MyClass
Men nihoyat ichki ma'lumotlar orqali RFCni nashr qildim! Kamida ikki hafta muhokama qilinadi, keyin ovoz berishni ochaman.
RFC: https://wiki.php.net/rfc/new_without_parentheses
Amalga oshirish va testlar: https://github.com/php/php-src/pull/13029
Muhokamani veb-saytda kuzatib borishingiz yoki axborot byulleteniga obuna bo'lishingiz va unda ishtirok etishingiz mumkin.
Manba: @PHPFunctionn
O'tgan yilning oxirida men PHP sintaksisiga o'zgartirish kiritdim, bu bizga ularga kirish uchun qavslar ichiga new ifodalarni o'rashdan qochish imkonini beradi:
Yakuniy sinf MyClass
{
const CONSTANT = 'doimiy';
public static $staticProperty = 'staticProperty';
umumiy statik funktsiya staticMethod(): string { return 'staticMethod'; }
public $property = 'mulk';
public function method(): string { return "metod"; }
umumiy funktsiya __invoke(): string { return '__invoke'; }
}
var_dump(
new MyClass()::CONSTANT, // string(8) "constant"
new MyClass()::$staticProperty, // string(14) "staticProperty"
new MyClass()::staticMethod(), // string(12) "staticMethod"
new MyClass()->xususiyat, // string(8) "xususiyati"
new MyClass()->method(), // string(6) "usul"
new MyClass()(), // string(8) "__invoke"
);Men nihoyat ichki ma'lumotlar orqali RFCni nashr qildim! Kamida ikki hafta muhokama qilinadi, keyin ovoz berishni ochaman.
RFC: https://wiki.php.net/rfc/new_without_parentheses
Amalga oshirish va testlar: https://github.com/php/php-src/pull/13029
Muhokamani veb-saytda kuzatib borishingiz yoki axborot byulleteniga obuna bo'lishingiz va unda ishtirok etishingiz mumkin.
Manba: @PHPFunctionn
GitHub
new MyClass()->method() without parentheses by vudaltsov Β· Pull Request #13029 Β· php/php-src
This PR allows to immediately access newly created object without parentheses.
class Request implements Psr\Http\Message\RequestInterface
{
// ...
}
// BEFORE
$request = (new Request())-&g...
class Request implements Psr\Http\Message\RequestInterface
{
// ...
}
// BEFORE
$request = (new Request())-&g...
π4π₯2β€1
<?php
session_start();
$text = $_GET["text"];
if($text == null)
{
$text = rand(11111,99999);
}
$captcha_vms = substr($text, 0, 6);
$_SESSION["captcha"] = $captcha_vms;
$target = imagecreatetruecolor(80,35);
$captcha_background = imagecolorallocate($target, 128, 128, 128);
imagefill($target,0,0,$captcha_background);
$captcha_fore_color = imagecolorallocate($target, 255, 255, 255);
imagestring($target, 8, 18, 9, $captcha_vms,$captcha_fore_color);
header("Content-type: image/png");
imagejpeg($target);
?>
Manba: @PHPFunctionn
π3π₯2β€1
<?php
if(isset($_GET['text'])){
$a = $_GET['text'];
$b = $_GET['raqam'];
header('content-type: image/jpg');
$img = imagecreatefromjpeg('img/rasm.jpg');
$font1 = "font/font.ttf";
$white = imagecolorallocate($img, 0, 0, 0);
$txt = $a;
$x = 200;
$y = 200;
imagettftext($img, 66, 0, $x,$y, $white, $font1, $txt);
$txt1 = $b;
$x1 = 200;
$y1 = 200;
imagettftext($img, 66, 0, $x1,$y1, $white, $font1, $txt1);
imagejpeg($img,"img/goto.jpg");
header ('location: img/goto.jpg');
}
?>
IMG USTIGA TEXT YOZIB BERADI GAN API
MANBA:?
π3β€2π₯2
Sign up(@webstile).zip
1.1 MB
π₯ Sign up Page
Manba: @webstile & @WonderfulCoders
Manba bilan oling!
Manba: @webstile & @WonderfulCoders
Bu kod Foydalavuvchini roΚ»yxatdan oΚ»tish sahifasi html va css yordamida mysql baza Foydalavuvchi ismi va email pochtasi bilan sql baza saqalaydi.
Manba bilan oling!
π3β‘2β€1π₯1πΎ1
βΉοΈ Yangi bot ochildi
πΉUseri: @J_CoinBot
πΉUseri: @J_CoinBot
β€2π2π₯2β‘1β€βπ₯1π1
@SiteCreatorUzBot ni baxolang:
Anonymous Poll
35%
π
4%
ππ
4%
πππ
4%
ππππ
52%
πππππ
β€4π2π2β‘1β€βπ₯1π₯1
π3β€2β‘1β€βπ₯1π₯1π1
β€2π2β€βπ₯1β‘1π₯1π1
β€2π2β‘1β€βπ₯1π₯1π1
β€2π2β‘1β€βπ₯1π₯1π1
ob_start();
error_reporting(0);
date_Default_timezone_set('Asia/Tashkent');
//Kod @BestProger tomonidan tuzib chiqilgan
//Xostingda Β«RiseBuilderΒ» nomli papkada tursin!
define("BestProger",'token'); //bot tokeni
function bot($method,$datas=[]){
$url = "https://api.telegram.org/bot".BestProger."/".$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);
}
}
$BestProger = json_decode(file_get_contents('php://input'));
$message = $BestProger->message;
$cid = $message->chat->id;
$name = $message->chat->first_name;
$tx = $message->text;
$new = $message->new_chat_member;
$newid = $new->id;
$uid = $message->from->id;
$is_bot = $new->is_bot;
$is_bot = $message->new_chat_member->is_bot;
$left = $message->left_chat_member;
$leftid = $left->id;
$group = "$gr1_id";
if(isset($new) and $is_bot == false){
if($newid !== $uid){
if($cid==$group or $group==$cid){
if(file_exists("add/$uid/qoshdi.txt")){
$res = mysqli_query($connect, "SELECT * FROM `kabinet` WHERE `user_id` = '$uid'");
$a = mysqli_fetch_assoc($res);
$us = $a['pul'];
$miqdor = $us + $gpul;
mysqli_query($connect, "UPDATE `kabinet` SET `pul` = '$miqdor' WHERE `user_id` = '$uid'");
file_get_contents("https://api.telegram.org/bot".BestProger."/sendMessage?chat_id=$cid&text=<b>βοΈ Guruhga odam qo'shdingiz va sizga $gpul $valyuta berildi</b>&parse_mode=html");
}else{
file_get_contents("https://api.telegram.org/bot".BestProger."/sendMessage?chat_id=$uid&text=<b>βοΈ Guruhga odam qo'shdingiz va sizga $gpul $valyuta berildi</b>&parse_mode=html");
$res = mysqli_query($connect, "SELECT * FROM `kabinet` WHERE `user_id` = '$uid'");
$a = mysqli_fetch_assoc($res);
$us = $a['pul'];
$miqdor = $us + $gpul;
mysqli_query($connect, "UPDATE `kabinet` SET `pul` = '$miqdor' WHERE `user_id` = '$uid'");
}
}else{
file_get_contents("https://api.telegram.org/bot".BestProger."/sendMessage?chat_id=$uid&text=<b>π Afuskiy men $guruh1 ga odam qo'shsangiz pul beraman!</b>&parse_mode=html");
}
}
}
Guruhga odam qo'shganga pul beradigon #funksiya
@WonderfulCoders πΊπΏ
β€4β‘2β€βπ₯2π2π₯1π1
Notcoin maker bot
πLink @SiteCreatorUzBot
Bu bot orqali siz o'zizni notcoin botizni yaratushingiz mumkin faqatgina @BotFather dan botiz tokenini botga tashasayiz bo'ldi
Bot sizni sayt hamda botni yaratib beradi.
πLink @SiteCreatorUzBot
Bu bot orqali siz o'zizni notcoin botizni yaratushingiz mumkin faqatgina @BotFather dan botiz tokenini botga tashasayiz bo'ldi
Bot sizni sayt hamda botni yaratib beradi.
π3β€2β‘1β€βπ₯1π₯1π1
Games(@FineCoders).php
5.6 KB
π4π₯3β€2β€βπ₯2β‘1π1