Forwarded from Yetim dasturchi kundaligi
The birth of an elePHPant
O'rgimchak to'ri o'tgan asrning oxirlarida tarqalishni boshladi. Ammo u vaqtlarda hozirgidek web saytlar yaratish uchun yetarlicha resurslar mavjud bo'lmagan. Oddiy misol web saytdagi dinamik qismlarni yaratish uchun dasturchilarda faqat CGI tavlovi bor edi xolos. Keyinchalik davraga PHP keldi. PHP birinchi marotaba 1994-yilda Rasmus Lerdorf tomonidan, o'zining saytidagi mehmonlar hisoblash uchun script to'plami sifatida ishlab chiqilgan. Birinchi versiya PERL asosida qurilgan, keyinchalik scriptning unumdorligi pastligi sabab C asosida qaytadan yozilgan. Muallif scriptni yaratish bilan birga uning kodlarini ham boshidan boshqalar bilan bo'lishib kelgan (PHP opensource loyiha), bu esa ushbu tilning tez orada keng ko'lamda qo'llanilishiga sabab bo'lgan.
Lekin PHPda ko'pchilik e'tibordan chetda qoldiradigan bir jihat bor. Linuxdagi pingvin bir belgi bo'lgani kabi phpda fil ramzi bor. Ushbu ramziy belgining tug'ilishiga 1998-yilda INSIGN egentligi xodimi Vinsent Pontye (Elroubio) sababchi bo'lgan. Bu vaqtda PHP dunyo serverlarining 10% qismini egallagan edi.
Pontye dasturchi do'sti bilan PHP haqidagi suhbatda "PHP" so'zini qog'ozga chizib o'tirib tasodifan birikma filga o'xshashini payqab qoladi. O'sha davrda Fransiyada ham ma'lum saytlar PHP asosida ishlashni boshlagan edi, jumladan Jan-Pyer Dezelus o'zining PHPinfo.net saytida bu til haqida keng ma'lumot berib borar edi. Qiziq tomoni shundaki Jan-Pyer fillar kollektori bo'lgan. Pontye o'ylanib o'tirmasdan qog'ozdagi qoralamani Jan-Pyerga yuboradi, Jan-Pyer esa undan PHPning original logosiga asoslanib (qora konturli gradientli ko‘k oval) fil suratini chizishni so'raydi. Shundan so'ng ular fil suratini elePHPant iborasi bilan PHPinfo.net saytiga joylashadi.
Vaqt o'tib fil PHPning ramziga aylandi, PHPinfo sayti sharafiga phpinfo() funksiyasi qo'shiladi.
@yetimdasturchi
O'rgimchak to'ri o'tgan asrning oxirlarida tarqalishni boshladi. Ammo u vaqtlarda hozirgidek web saytlar yaratish uchun yetarlicha resurslar mavjud bo'lmagan. Oddiy misol web saytdagi dinamik qismlarni yaratish uchun dasturchilarda faqat CGI tavlovi bor edi xolos. Keyinchalik davraga PHP keldi. PHP birinchi marotaba 1994-yilda Rasmus Lerdorf tomonidan, o'zining saytidagi mehmonlar hisoblash uchun script to'plami sifatida ishlab chiqilgan. Birinchi versiya PERL asosida qurilgan, keyinchalik scriptning unumdorligi pastligi sabab C asosida qaytadan yozilgan. Muallif scriptni yaratish bilan birga uning kodlarini ham boshidan boshqalar bilan bo'lishib kelgan (PHP opensource loyiha), bu esa ushbu tilning tez orada keng ko'lamda qo'llanilishiga sabab bo'lgan.
Lekin PHPda ko'pchilik e'tibordan chetda qoldiradigan bir jihat bor. Linuxdagi pingvin bir belgi bo'lgani kabi phpda fil ramzi bor. Ushbu ramziy belgining tug'ilishiga 1998-yilda INSIGN egentligi xodimi Vinsent Pontye (Elroubio) sababchi bo'lgan. Bu vaqtda PHP dunyo serverlarining 10% qismini egallagan edi.
Pontye dasturchi do'sti bilan PHP haqidagi suhbatda "PHP" so'zini qog'ozga chizib o'tirib tasodifan birikma filga o'xshashini payqab qoladi. O'sha davrda Fransiyada ham ma'lum saytlar PHP asosida ishlashni boshlagan edi, jumladan Jan-Pyer Dezelus o'zining PHPinfo.net saytida bu til haqida keng ma'lumot berib borar edi. Qiziq tomoni shundaki Jan-Pyer fillar kollektori bo'lgan. Pontye o'ylanib o'tirmasdan qog'ozdagi qoralamani Jan-Pyerga yuboradi, Jan-Pyer esa undan PHPning original logosiga asoslanib (qora konturli gradientli ko‘k oval) fil suratini chizishni so'raydi. Shundan so'ng ular fil suratini elePHPant iborasi bilan PHPinfo.net saytiga joylashadi.
Vaqt o'tib fil PHPning ramziga aylandi, PHPinfo sayti sharafiga phpinfo() funksiyasi qo'shiladi.
@yetimdasturchi
1 7 6 4 2👍1
madeline bilan botdagi barcha chatlarini tiklash
©️ Manba: @vip_kodlar
✅ Dasturchi: @DrLiviesey
$ids = $this->getDialogIds();
echo json_encode($ids);
Please open Telegram to view this post
VIEW IN TELEGRAM
1 17 4 3
1. Boshqalar belgilay olish olmasligi guruh+shaxsiyda
2. Boshqalar vazifa qoʻshish qoʻsholmasligi guruh+shaxsiyda
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
1 82 7 6👍2 1
Forwarded from BotNews
Bot API 9.1
☑️ Checklists
• Introduced support for native checklists.
• Out of the box, business bots can create and edit checklists.
• Bots can now receive checklists and detect progress via service messages.
🎁 Gifts, Stars and More
• Improved gifts with details on their last sale and transfer cooldown.
• Bots can now easily check their Telegram Star balance.
• Mini Apps can now hide the on-screen keyboard.
• Unlocked more poll options, allowing up to 12.
• And more, see the full changelog for details:
https://core.telegram.org/bots/api-changelog#july-3-2025
• Introduced support for native checklists.
• Out of the box, business bots can create and edit checklists.
• Bots can now receive checklists and detect progress via service messages.
• Improved gifts with details on their last sale and transfer cooldown.
• Bots can now easily check their Telegram Star balance.
• Mini Apps can now hide the on-screen keyboard.
• Unlocked more poll options, allowing up to 12.
• And more, see the full changelog for details:
https://core.telegram.org/bots/api-changelog#july-3-2025
Please open Telegram to view this post
VIEW IN TELEGRAM
1 16 4 3👍1
This media is not supported in your browser
VIEW IN TELEGRAM
bot();
$bmessage = $update->business_message;
$bmessage_id = $bmessage->business_connection_id;
$bmessage_text = $bmessage->text;
$bmessage_emojitext = $bmessage->entities;
$bmessage_mid = $bmessage->message_id;
if (preg_match("/\.cheklist/i", $bmessage_text)) {
bot('editMessageText', [
'business_connection_id' => $bmessage_id,
'chat_id' => $bmessage_cid,
'message_id' => $bmessage_mid,
'text' => "ㅤ",
]);
$text = explode(".cheklist", $bmessage_text)[1];
$pattern = '/[\x{1F000}-\x{1FFFF}]/u';
$emojiIndex = 0;
$modified_text = preg_replace_callback($pattern, function($matches) use (&$emojiIndex, $bmessage_emojitext) {
global $emojiIndex, $bmessage_emojitext;
$currentEmoji = $matches[0];
$emoji_id = $bmessage_emojitext[$emojiIndex]->custom_emoji_id;
$emojiIndex++;
return "<tg-emoji emoji-id='{$emoji_id}'>{$currentEmoji}</tg-emoji>";
}, $text);
$lines = explode("\n", $modified_text);
$tasks = [];
foreach ($lines as $i => $line) {
if ($line !== "") {
$tasks[] = [
"id" => $i + 1,
"text" => "$line",
"parse_mode" => "html",
];
}
}
$resultc = bot('editMessageChecklist', [
'business_connection_id' => $bmessage_id,
'chat_id' => $bmessage_cid,
'message_id' => $bmessage_mid,
'checklist' => json_encode([
'title' => "<tg-emoji emoji-id='6039779802741739617'>🗂</tg-emoji> Vazifalar",
'parse_mode' => "html",
'tasks' => $tasks
]),
'others_can_add_tasks' => true,
'others_can_mark_tasks_as_done' => true,
]);
}
Please open Telegram to view this post
VIEW IN TELEGRAM
1 25 10 8🔥3👍2
Forwarded from News and Tips
This media is not supported in your browser
VIEW IN TELEGRAM
Thanks : 💌💌💌
Please open Telegram to view this post
VIEW IN TELEGRAM
4 19 16 12 7👍2
Forwarded from BotNews
Bot API 9.2
📭 Direct Messages in Channels
• Introduced Channel Direct Messages Chats, allowing bots to send and detect Direct Messages in channels they manage.
• Bots can now identify direct messages chats and their parent channel.
• Bots now additionally receive topic metadata for direct messages.
⭐️ Suggested Posts
• Introduced full support for Suggested Posts in channels, unlocking granular automations via bots with sufficient rights.
• Bots can now detect, send, approve and decline suggested posts, with detailed price and date options.
• All relevant service messages are supported – including approvals, errors, declines, successful payments and refunds.
☑️ Checklists
• Bots can now reply directly to individual checklist tasks.
🎁 Gifts
• Gifts can now expose their publisher chat for attribution.
• And more, see the full changelog for details:
https://core.telegram.org/bots/api-changelog#august-15-2025
• Introduced Channel Direct Messages Chats, allowing bots to send and detect Direct Messages in channels they manage.
• Bots can now identify direct messages chats and their parent channel.
• Bots now additionally receive topic metadata for direct messages.
• Introduced full support for Suggested Posts in channels, unlocking granular automations via bots with sufficient rights.
• Bots can now detect, send, approve and decline suggested posts, with detailed price and date options.
• All relevant service messages are supported – including approvals, errors, declines, successful payments and refunds.
• Bots can now reply directly to individual checklist tasks.
• Gifts can now expose their publisher chat for attribution.
• And more, see the full changelog for details:
https://core.telegram.org/bots/api-changelog#august-15-2025
Please open Telegram to view this post
VIEW IN TELEGRAM
1 17👍6 4 2
This media is not supported in your browser
VIEW IN TELEGRAM
bot();
$message = $update->message;
$text = $message->text;
$cid = $message->chat->id;
$mid = $message->message_id;
$directm = $message->direct_messages_topic;
$dtopic_id = $directm->topic_id;
$duser_name = $directm->user->first_name;
if(isset($directm)){
$mide = bot('sendmessage',[
'chat_id'=>$cid,
'direct_messages_topic_id'=>$dtopic_id,
'reply_to_message_id' => $mid,
'text'=>"⏳",
'parse_mode'=>"html",
])->result->message_id;
$data = json_decode(file_get_contents("https://api.smtv.uz/ai/index.php?text=".urlencode($text)), true);
$javob = $data['answer'];
bot('editmessagetext',[
'chat_id'=>$cid,
'direct_messages_topic_id'=>$dtopic_id,
'message_id' => $mide,
'text'=>"$javob",
'parse_mode'=>"html",
]);
}
direct_messages_topic_id parametrini sendPhoto, sendVideo, vahokazo methodlarga qo'shsangiz bo'ladiPlease open Telegram to view this post
VIEW IN TELEGRAM
1 18 7 7👍2🔥1 1
<?php
$url = "https://cosmoai.uz/fragment/index.php";
$data = [
"username" => "cysze", // username
"amount" => 50, // 50 stars
"seed" => "auction rough ... bullet" // 24 kalit so'zlari
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
$response = curl_exec($ch);
if (curl_errno($ch)) {
echo "Curl xato: " . curl_error($ch);
} else {
echo $response;
}
curl_close($ch);
Please open Telegram to view this post
VIEW IN TELEGRAM
1 24 8 6
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