PHP - Life
92 subscribers
40 photos
2 videos
39 files
27 links
Owner - @TgWebCoder
Bot - @PHPLifeBot

©️ PHP LIFE UZ 2024 - 2026
Download Telegram
PHP - Life
Yangi loyiha 🙂
Hosh..?
PHP - Life
Hosh..?
Hosh..?
Virtual akkaunt olgandim

Afsus nft gift yoq ekanda
🗿
Please open Telegram to view this post
VIEW IN TELEGRAM
api.php
5.9 KB
🌐 Sayt kodini olib beradigan api

👨‍💻 Dasturchi: @UzbekProger
©️ Manba: @PHPLifeUz
Please open Telegram to view this post
VIEW IN TELEGRAM
5
Forwarded from Gift Updates 🎁 (твой цвет тебе милей)
в честь того что у меня сервер упал телеграм решили сломать bot api и теперь все (ну или практически все) боты умерли и раз в полчаса включаются на 2 минуты и снова умирают
Comeback?
PHP’da IP manzilni to‘g‘ri aniqlash


<?php
function getUserIP() {
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
return $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
return explode(',', $_SERVER['HTTP_X_FORWARDED_FOR'])[0];
} else {
return $_SERVER['REMOTE_ADDR'];
}
}

$userIP = getUserIP();
echo "IP: " . $userIP;
?>
PHP’da TON to‘lov linkini yaratish

<?php
$address = "UQC8mt4bKiZI6PRdnp2-no_UM0aUD1-DIPp_XXXXXXX";
$amount = 0.5;
$nano = $amount * 1000000000;
$payLink = "ton://transfer/$address?amount=$nano";
echo $payLink;
?>
Qanaqa bot kodi kerak tashelachi
👛 @GoldHamyonBot - avto to'lov!

😏 Odam zerikib ketdi, loyihalar uchun tekinga avto to'lov qilib qo'ydim
⚠️ Bot Humo bilan ishlaydi
Please open Telegram to view this post
VIEW IN TELEGRAM
🎄 va 🎁 gift sotib oladigan bot kodini tarqatamizmi?

🐸 Gift profildan yuboriladigan!
Please open Telegram to view this post
VIEW IN TELEGRAM
🤖 Botda premium emoji va tugmalarda rang chiqarish:

if($text=="/start"){
$keyboard = json_encode([
'inline_keyboard' => [[
['text' => 'Kanal', 'url' => 'https://t.me/PHPLifeUz', 'icon_custom_emoji_id' => '5258466470676940666', 'style'=>'success'] // “danger” (qizil), “success” (yashil) va “primary” (ko'k)
]]]);
bot('sendMessage',[
'chat_id'=>$cid,
'text'=>"<tg-emoji emoji-id='5472055112702629499'></tg-emoji> Salom, premium emoji yuboring",
'reply_markup'=>$keyboard,
'parse_mode' => "HTML",
]);
}


Emoji IDsini olish uchun @PHPLifeBot ga premium emoji yuboring!
💙 Kanal: @PHPLifeUz
Please open Telegram to view this post
VIEW IN TELEGRAM
111
Forwarded from BotNews
This media is not supported in your browser
VIEW IN TELEGRAM
Bot API 9.5

🗓 Date and Time Formatting
• Introduced date and time formatting, allowing bots to show a formatted date and time to the user.
• Out-of-the-box support for relative times, localized weekdays and more.

👑 Custom Member Tags
• Introduced support for custom group member tags.
• Bots can now detect member tags, assign them, or allow admins to manage them.

📝 Message Streaming
• With today's update, every bot on Telegram can freely use the message streaming feature.

• And more, see the full changelog for details:

https://core.telegram.org/bots/api-changelog#march-1-2026
Please open Telegram to view this post
VIEW IN TELEGRAM
<?php
ob_start();
error_reporting(0);
date_default_timezone_set('Asia/Tashkent');
define("API_KEY",'token');

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);
return json_decode(curl_exec($ch));
}

$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$cid = $message->chat->id;
$mid = $message->message_id;
$text = $message->text;

if ($text == "/me" or $text == "/me@UzGiveBot") {
$get = bot('getUserGifts', ['user_id' => $from_id,]);
$allgifts = $get->result->total_count;
foreach ($get->result->gifts as $gifts) {
if ($gifts->type == "unique") {
$name = $gifts->gift->name;
$name = preg_replace('/([a-z])([A-Z])/', '$1 $2', $name);
$name = str_replace('-', ' #', $name);
$agift = $agift . "<tg-emoji emoji-id='" .
$gifts->gift->model->sticker->custom_emoji_id . "'>" .
$gifts->gift->model->sticker->emoji ."</tg-emoji> <a href='https://t.me/nft/" .
$gifts->gift->name . "'>" .$name ."</a>\n";
}
}
bot('sendmessage', [
'chat_id' => $cid,
'reply_to_message_id' => $mid,
'parse_mode' => 'html',
'disable_web_page_preview' => true,
'text' => "<b><tg-emoji emoji-id='5413529959887052963'>🇺🇿</tg-emoji> Barcha sovg'alar: $allgifts ta\n\n<tg-emoji emoji-id='5415914044693449382'>🐸</tg-emoji> NFT Sovg'alar:\n<blockquote expandable>$agift</blockquote></b>",
]);
exit;
}


👤 Foydalanuvchining NFT giftlarini chiqarish funksiyasi!

⚠️ Foydalanish uchun akkauntda premium bo'lishini tavsiya beramiz
🛡 Manba: @PHPLifeUz
Please open Telegram to view this post
VIEW IN TELEGRAM
Qanaqa bot kodi kerak tuzamiz yoki qanaqa funksiya🤨
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from BotNews
Bot API 9.6

🦀 Managed Bots
Manager bots are used to bootstrap and control other bots on behalf of their owners – easily orchestrating any number of AI agents, Business Accounts and custom tools.
• Out of the box, manager bots can prompt users to create a bot in one tap and easily fetch their token to start piloting them.

📊 Poll Revolution
• Polls now support multiple correct answers, re-issuing votes, hidden results and richly formatted descriptions.
• Poll options now have persistent ids and can be shuffled or dynamically added by users.
• Bots can now additionally reply to a specific poll option.

General
• Mini Apps can now natively request users, chats and managed bots in one tap via prepared keyboard buttons.
• Expanded support for date and time entities in checklists, quotes and gift texts.

• And more, see the full changelog for details:

https://core.telegram.org/bots/api-changelog#april-3-2026
Please open Telegram to view this post
VIEW IN TELEGRAM
🟥 YouTube video downloader

🔗 Base URL: https://api-link.uz/api/youtube

⚙️ Parameters:
url - video link

🚀 Example: https://api-link.uz/api/youtube?url=https://youtu.be/_KQ1lS9Pa-g?si=s1nV-6Am8vx-mh6F
Please open Telegram to view this post
VIEW IN TELEGRAM
Qanaqa bot kodi kerak tuzamiz yoki qanaqa funksiya🤨
Please open Telegram to view this post
VIEW IN TELEGRAM