Learn to Code | #Personal-Blog !
25 subscribers
34 photos
8 videos
18 files
15 links
Download Telegram
Forwarded from CodeWork.uz
Tanishing! Bu tandirdan endigina uzilgan loyiha – CodeWork.uz

Bu dastur

• frilanserlik
• kreativ yondashuvlik
• eng sifatli dasturiy ta'minot
• o'zgacha dizayn

–larni o'z ichiga oladi...

Loyihaga eng yaxshi mutahasislarni jamlashga erishdik. Va sonimizni ko'paytirish niyati yo'q emas. Bundan ko'rinadiki biz hali ko'plab marralarni zabt etamiz.

Bizga qo‘shiling va o‘zingizni @codeworkuz bilan birga kashf eting

@codeworkuz | codework.uz
Endilikda Botimizda inline rejimda fayllarni izlash imkoni mavjud🎉

Ba`tafsil: /inline

Shunchaki istalgan yerda (@SearchDoc_bot faylnomi)ni yozasizlar bo`ldi ,😉
python kodlayam keremi nma disla 🧐
testadmember.php
83.4 KB
Forwarded from CodeWork.uz
Siz oʻz biznesingizni boshladingizmi ?
Mahsulotingiz bilan tanishib chiqish va siz bilan bogʻlanish uchun qulay web site va telegram bot yaratishga ishonchli va sifatli xizmat qiladigan kompaniya bor buni bilarmidingiz ?!!


Endigina tashkil topganiga qaramasdan mijozlarga sifatli xizmat qilib kelayotgan @codeworkuz sizga oʻz xizmatlarini 10% chegirma asosida taklif qiladi.

Ya'ni sifatli
• Telegram Bot
• Web Sayt
• Ajoyib Dizayner
xizmati va boshqalar...


codework.uz - dunyoga raqamli nigoh bilan qarang!
Forwarded from M
This media is not supported in your browser
VIEW IN TELEGRAM
<?php
// _______________________________///
// ÷÷÷÷÷÷÷ FAST CODER ÷÷÷÷÷÷÷÷ ///
// ÷÷÷÷÷÷÷÷ PHP TEAM ÷÷÷÷÷÷÷÷ ///
// ÷÷÷÷÷÷÷ @Fast_Coder ÷÷÷÷÷÷÷ ///
// ÷÷÷ @Rustam_Hikmatullayev ÷÷÷ ///
// ______________________________///
define('API_KEY','1142:AAG38j1qHkQOQt-RhuULJoQsu835o');
$botuser = "@sevgi_test_bot";
$admin = "554834550";
function del($nomi){
array_map('unlink', glob("$nomi"));
}

function put($fayl,$nima){
file_put_contents("$fayl","$nima");
}
function get($fayl){
$get = file_get_contents("$fayl");
return $get;
}
function ty($ch){
return bot('sendChatAction', [
'chat_id' => $ch,
'action' => 'typing',
]);
}
function editMessageText(
$chatId,
$messageId,
$text,
$parseMode = null,
$disablePreview = false,
$replyMarkup = null,
$inlineMessageId = null
) {
return bot('editMessageText', [
'chat_id' => $chatId,
'message_id' => $messageId,
'text' => $text,
'inline_message_id' => $inlineMessageId,
'parse_mode' => $parseMode,
'disable_web_page_preview' => $disablePreview,
'reply_markup' => $replyMarkup,
]);
}
function ACL($callbackQueryId, $text = null, $showAlert = false)
{
return bot('answerCallbackQuery', [
'callback_query_id' => $callbackQueryId,
'text' => $text,
'show_alert'=>$showAlert,
]);
}
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(get('php://input'));
$message = $update->message;
$text = $message->text;
$cid = $message->chat->id;
$uid = $message->from->id;
$fname = $message->from->first_name;
$user = $message->from->username;
$data = $message->contact;
$nomer = $message->contact->phone_number;
$name = $message->contact->first_name;
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$cid = $message->chat->id;
$cidtyp = $message->chat->type;
$miid = $message->message_id;
$name = $message->chat->first_name;
$user = $message->from->username;
$tx = $message->text;
$callback = $update->callback_query;
$mmid = $callback->inline_message_id;
$mes = $callback->message;
$mid = $mes->message_id;
$cmtx = $mes->text;
$mmid = $callback->inline_message_id;
$idd = $callback->message->chat->id;
$cbid = $callback->from->id;
$cbuser = $callback->from->username;
$data = $callback->data;
$ida = $callback->id;
$cqid = $update->callback_query->id;
$cbins = $callback->chat_instance;
$cbchtyp = $callback->message->chat->type;
$step = file_get_contents("step/$cid.step");
$menu = file_get_contents("step/$cid.menu");
$stepe = file_get_contents("step/$cbid.step");
$menue = file_get_contents("step/$cbid.menu");
mkdir("step");

$url = 'https://daryo.uz/feed/';
$rss = simplexml_load_file($url);
foreach ($rss->channel->item as $item) {
$line = $item->title;
$link = $item->link;
break;
}

$key = json_encode([
'resize_keyboard'=>true,
'keyboard'=>[
[['text'=>"😍 Sevgi Test 😍"],['text'=>"👤 Admin 👤"]],
[['text'=>" Yordam "],['text'=>"⤴️ Foydali Bo'lim ⤴️"]],[['text'=>"Kanalimiz"]],
]
]);
$foydali = json_encode([
'resize_keyboard'=>true,
'keyboard'=>[
[['text'=>" Yangi Yil "],['text'=>"🆕️ Yangiliklar 🆕️"]],
]
]);
$back = json_encode([
'resize_keyboard'=>true,
'keyboard'=>[
[['text'=>"🔙 Orqaga Qaytish"]],
]
]);
if($text=="🔙 Orqaga Qaytish"){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"🏠 *Siz Bosh Menyudasiz* 🙄",
'parse_mode'=>'markdown',
'reply_markup'=>$key,
]);
}
if($text=="/start"){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"👋 *Salom* [$fname](tg://user?id=$uid) *Botimizga Xush Kelibsiz* 😄\n\n*😅 Siz Bu Bot Orqali Sevgi Testi Qilishingiz Mumkin 😍*",
'parse_mode'=>'markdown',
'reply_markup'=>$key,
]);
}
if($text=="😍 Sevgi Test 😍"){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"❤️ *Sevgi Test 😍

❤️ O'z Sevgingizni Bizning Botda Test Qilib Ko'ring 🤩

📝 Ishlatish: ( Masalan 👇)*

👉 /test Behruz Shohsanam 👈

😁 *Shu Usulda* 😊",
'parse_mode'=>'markdown',
'reply_markup'=>$back,
]);
}
if(mb_stripos($text,"/test") !== false){
$loop = explode(" ", $text);
$suz = $loop[1];
$javob = $loop[2];
$suz = file_get_contents("https://ismlar.com/search/$suz");
$exp = explode('<p class="text-size-5">',$ism);
$expl = explode('<div class="col-12 col-md-4 text-md-right">',$exp[1]);
$im = str_replace($expl[1],' ',$exp[1]);
$ims = str_replace('</p>',' ',$im);
$isms = str_replace('</div>',' ',$ims);
$ismn = str_replace('<div class="col-12 col-md-4 text-md-right">',' ',$isms);
$ismk = str_replace('&#039;','`',$ismn);
$ismm = trim("$ismk");
if($ism==null or $ismm==null){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"Ismda xatolik bor",]);
}
$bormi=file_get_contents("natija/$suz.$javob");
if($bormi==null){
if($soz>=50){$bahoy="Sevgilar yuqori ekan qoyil bahtli bolilar"; $smile="🥰";}else{$smile="😭"; $bahoy="Boshqasini topganiz maʼqul deb oʻylayman";}
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"
🤵 - <b>$suz
👰 - $javob</b>

<code>$smile Orangizdagi Sevgi</code> -<b>$soz</b> %

<b>Taklifimiz:</b> <code>$bahoy</code>",
'parse_mode'=>'html',
'reply_markup'=>$back,
]);
file_put_contents("natija/$suz.$javob","$soz");}else
{
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"🤵 - <b>$suz</b>
👰 - <b>$javob</b>

😍 Orangizdagi Sevgi <b>$bormi</b> 😊
By $botuser
Channel: @WebCoding_Uz",
'parse_mode'=>'markdown',
'reply_markup'=>$back,
]);
}}
if($text=="👤 Admin 👤"){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"😎 *Administrator:* [@fast_Koder] *Muammo Bo'lsa Murojaat Qilishingiz Mumkun* 😅",
'parse_mode'=>'markdown',
'reply_markup'=>$key,
]);
}
if($text==" Yordam "){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"😊 *Assalomu Alekum Botimizga Xush Kelibsiz 👋😀

❤️ Botimizda O'z Sevgingizni Bizning Botda Test Qilib Ko'rishingiz Mumkin 🤩

😎 Hammaga Omad* 😁🖐",
'parse_mode'=>'markdown',
'reply_markup'=>$key,
]);
}
if($text=="⤴️ Foydali Bo'lim ⤴️"){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"🖐😌 Foydali Bo'lim ",
'parse_mode'=>'markdown',
'reply_markup'=>$foydali,
]);
}
if($text==" Yangi Yil "){
$kun1 = date('z ',strtotime('2 hour'));
$a = 364;
$c2 = $a-$kun1;
$d = date('L ',strtotime('2 hour'));
$b = $c2+$d;
$f = $b+81;
$e = $b+240;
$kun2 = date('H ',strtotime('2 hour'));
$a2 = 23;
$b2 = $a2-$kun2;
$kun3 = date('i ',strtotime('2 hour'));
$a3 = 58;
$b3 = $a3-$kun3;
$kun4 = date('s ',strtotime('2 hour'));
$a4 = 60;
$b4 = $a4-$kun4;
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>" *Yangi Yilga: $b - Kun, $b2 - Soat, $b3 - Minut, $b4 - Sekund Qoldi 😀*",
'parse_mode'=>'markdown',
'reply_markup'=>$foydali,
]);
}
if($text=="🆕️ Yangiliklar 🆕️"){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"🆕️ Yangilik

🆕️ [$line]($link) 🤩",
'parse_mode'=>'markdown',
'reply_markup'=>$foydali,
]);
}
if($text == "Kanalimiz"){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"Bizning telegran kanalimiz @FAST_Coder "
,
]);
}
😂😂😂
manba: @SKETCHWARELITE
assalom aleykum!
manimcha bu kanalda hamma php dan foydalansa kk , php juda qulay va tushunarli dasturlash tillaridan biri (manimcha).
php da eng kop qo`llaniladigan narsalardan biri bu O'ZGARUVCHILAR.
ya'ni

$ozgaruvchi = "birornima";

shunga o`xshash
bu bilmaganla uchun sekin sekin dasturlash darslani boshlimiz!
This media is not supported in your browser
VIEW IN TELEGRAM
Ramazonda yangi chegirmalar 🥳

●Web-Sayt larga 15% dan 25% gacha chegirma.
●Telegram-Bot ga 10% dan 20% gacha chegirma.


Shoshiling imkoniyatni qo'ldan boy bermang!

👨🏻‍💻: @hv_uz
Oʻtkir tanqid,hayotiy voqealar va kuchli motivatsiya!!!

Odatiy gaplardan yiroq kanal🙂

@rasuloff_uz @rasuloff_uz
🤖 Bot @MajburRobot
🌐Men majburiy a'zolik tizimini sozlash vazifasini bajaraman!
Bot sizning guruhda o'z ish faoliyatini boshlashi uchun guruhga admin qilishingiz kerak

🤖 @MajburRobot buyruqlari!
1) /setchannel - Majburiy a'zolik tizimini sozlash.
Na'muna:/setchannel @phpdevelopersuz @arenda_server
2) /unlink - Sozlangan kanallarni o'chirib tashlash.
3) /channels - Sozlangan kanalni ko'rish.

Botni guruhga qoshish
Onlayn darslar bor ajoyib sayt.
Bu saytdan dasturlash,matematika,kimyo... juda ko'p soxalarga oid darsliklarni topish mumkin!

saytga kirish -> khanacademy.com
Ахахаха , жиза?

М: itmastersuz

@codelesson