Forwarded from Web Dev Master UZ | IT Dasturlash | Frontend | Backend | React | Nodejs | Python | PHP | Javascript | Android | Java
Media is too big
VIEW IN TELEGRAM
Videodagi Loyihani toʻliq qismi 1000+ obunachi boʻsak joyliman! Obuna boʻling 🤝
👇👇👇💥🔥 Reaksiya gooo
👇👇👇💥🔥 Reaksiya gooo
1👍9 7 6 3 1
Livestrem qilaman ovoz boʻlmasligi mumkin savolingiz boʻlsa comment da yozing
1 8👍3 3 3 1
API
Funksiya
Qoʻshimcha maʼlumot: cdate();
Stadionuz saytidan xozirgi real vaqtdagi malumotni olib beradi
🚀 Namuna: t.me/Anowkabot
©️ Manba: @vip_kodlar
🐶 Dasturchi: @Boydadasi
$url = 'https://m.stadion.uz/news/rss';
$rss = simplexml_load_file($url);
foreach ($rss->channel->item as $item){
$line = $item->title;
$lifud = $item->link;
}
Funksiya
bot();
if($data=="fudboly"){
$soat = date('H:i', strtotime('2 hour'));
bot('DeleteMessage',[
'chat_id'=>$cid2,
'message_id'=>$mid2,
]);
bot('sendmessage',[
'chat_id'=>$cid2,
'message_id'=>$mid2,
'text'=> "<pre>Xozirgi ⏰ Soat: $vaqt bo'yicha \n</pre>\n🔔Eng so‘ngi 📰futbol yangiliklari
🆕️[$line]($lifud)
🍃Batafsil o‘qish uchun bosing
",
'show_alert'=>true,
'parse_mode' =>"html",
'reply_markup'=>json_encode(
['inline_keyboard' => [
[['text'=>'◀️','callback_data'=>'vertual']],
]
])
]);
}Qoʻshimcha maʼlumot: cdate();
Stadionuz saytidan xozirgi real vaqtdagi malumotni olib beradi
Please open Telegram to view this post
VIEW IN TELEGRAM
1👍5 4 3 2 1 1
This media is not supported in your browser
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
1🔥9 7 6 4👍1
Forwarded from Men, Adamov
#css_in_js
🤔 CSS-in-JS nima?
Bu — an'anaviy .css fayllari o'rniga JavaScript kodining o'zida CSS stillarini yozish imkonini beruvchi texnika. Stillar to'g'ridan-to'g'ri komponentlarga "bog'lanadi".
🤨 Qayerda ishlatiladi?
Asosan, React, Vue, Svelte kabi komponentlarga asoslangan freymvorklar bilan birga qo'llaniladi. Styled-components, Emotion, JSS kabi kutubxonalar bu yondashuvning eng mashhur namoyandalaridir.
🥸 Qiziqarli faktlar:
🚀
🚀
🚀
👉🏿 Men, Adamov 👈🏿
Bu — an'anaviy .css fayllari o'rniga JavaScript kodining o'zida CSS stillarini yozish imkonini beruvchi texnika. Stillar to'g'ridan-to'g'ri komponentlarga "bog'lanadi".
Asosan, React, Vue, Svelte kabi komponentlarga asoslangan freymvorklar bilan birga qo'llaniladi. Styled-components, Emotion, JSS kabi kutubxonalar bu yondashuvning eng mashhur namoyandalaridir.
Dinamiklikning cho'qqisi: Stillarni JavaScript o'zgaruvchilari (props, state) orqali boshqarish mumkin. Masalan, tugma bosilishiga qarab uning rangini bir zumda o'zgartirish!Global CSS'dan qochish: Bu usul "klasslar mojarosi" (class name collision) muammosini deyarli yo'qqa chiqaradi. Har bir stil faqat o'zi tegishli bo'lgan komponentga ta'sir qiladi."O'lik kod"ni avtomatik tozalash: Faqat ishlatilayotgan komponentlarning stillari sahifaga qo'shiladi. Agar biror komponentni o'chirsangiz, uning stillari ham avtomatik ravishda yo'qoladi. Kod ortiqcha "chiqindilar"dan tozalanadi!👉🏿 Men, Adamov 👈🏿
Please open Telegram to view this post
VIEW IN TELEGRAM
1 6 3 3 2🔥1
Assalomu alaykum va rohmatullohi va barokatuh❤️
Qurbon hayitingiz muborak boʻlsin🌹
Qurbon hayitingiz muborak boʻlsin
Please open Telegram to view this post
VIEW IN TELEGRAM
2 17 5 4 3 2
This media is not supported in your browser
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
1 14 6 6 5👍2
Mohirdev
https://mohirdev.uz/gift?id=5819317484
https://t.me/mohirdevuzbot?start=hayitlik
Please open Telegram to view this post
VIEW IN TELEGRAM
1 6 3 3 2👍1
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