Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=44628
Postga havola
YaxaMedia [37] [off]
3 daqiqa 42 soniyadan keyin yozdi:
tekshirip beringlar
<?php // token maydoni { return endpoint('sendMessage', $content); } { $replyMarkup = [ 'keyboard' => $options, 'one_time_keyboard' => $onetime, 'resize_keyboard' => $resize, 'selective' => $selective, ]; return $encodedMarkup; } function bot($method,$datas=[]){ $url = "https://api.telegram.org/bot".bot_token."/".$method; { $url = 'https://api.telegram.org/bot'.bot_token.'/'.$api; if ($post) { $reply = sendAPIRequest($url, $content); } else { $reply = sendAPIRequest($url, [], false); } } { $url = $url.'?chat_id='.$content['chat_id']; //$url = $url.'?'.http_build_query($content); //unset($content); } if ($post) { } if ($result === false) { $result = json_encode(['ok'=>false, 'curl_error_code' => curl_errno($ch), 'curl_error' => curl_error($ch)]); } return $result; } function buildForceReply($selective = true) { $replyMarkup = [ 'force_reply' => true, 'selective' => $selective, ]; return $encodedMarkup; } // uzizni ID raqamingizni kiritasiz $admin = "542680109"; // BOT iz username si $bot_name = "qarawilrobot"; // manba @gayratfayz kanali //basic $text = $efede["message"]["text"]; $photo = $efede["message"]["photo"]; $sana = $efede["message"]["date"]; $chat_id = $efede["message"]["chat"]["id"]; // chat $cfname = $efede["message"]["chat"]["first_name"]; $cid = $efede["message"]["chat"]["id"]; $clast_name = $efede["message"]["chat"]["last_name"]; $turi = $efede["message"]["chat"]["type"]; //user info $ufname = $efede["message"]["from"]["first_name"]; $uname = $efede["message"]["from"]["last_name"]; $ulogin = $efede["message"]["from"]["username"]; $uid = $efede["message"]["from"]["id"]; $user_id = $efede["message"]["from"]["id"]; //reply info $sreply = $efede["message"]["reply_to_message"]["text"]; // umumiy menu $menu = [["ℹMen haqimda"],["?Xabar yozish"],["?Bot haqida"]]; if ($text == '/start') { $keyfd = buildKeyBoard($menu, $onetime = false, $resize = true); $content = ['chat_id' => $chat_id, 'reply_markup' => $keyfd, 'text' => "*✋Assalomu alaykum $ufname $uname*", 'parse_mode' => 'markdown']; xabarYubor($content); } if ($text == 'ℹMen haqimda') { $keyfd = buildKeyBoard($menu, $onetime = false, $resize = true); $content = ['chat_id' => $chat_id, 'reply_markup' => $keyfd, 'text' => "*Siz haqingizda!* _?Ismingiz:_ $ufname _?Familiyangiz:_ $uname _?Loginingiz:_ @$ulogin _?raqamingiz:_ $user_id _?guruh:_ $uid", 'parse_mode' => 'markdown']; xabarYubor($content); } if ($text == '?Bot haqida') { $keyfd = buildKeyBoard($menu, $onetime = false, $resize = true); $content = ['chat_id' => $chat_id, 'reply_markup' => $keyfd, 'text' => "*Salom $ufname botimiz orqali siz admin bilan bog‘lanishingiz mumkin!* _Bot_ @gayratfayz _Media Group® tomonidan yaratildi?_", 'parse_mode' => 'markdown']; xabarYubor($content); } if ($text == '/feedback' || $text == "?Xabar yozish"){ $keyfd = buildForceReply($selective=true); $content = ['chat_id' => $chat_id, 'reply_markup' => $keyfd, 'text' => "*Xabar matnini kiriting*", 'parse_mode' => 'markdown']; xabarYubor($content); } if ($sreply == 'Xabar matnini kiriting'){ $option = $menu; $keyfd = buildKeyBoard($option, $onetime = false); $content = ['chat_id' => $chat_id, 'reply_markup' => $keyfd, 'text' => "*?Xabaringiz bizga yetib keldi?* _?Tez orada javob qaytaramiz✍_", 'parse_mode' => 'markdown']; xabarYubor($content); $option = [["javob#$chat_id"]]; $keyfd = buildKeyBoard($option, $onetime = false); $content = ['chat_id' => $admin, 'reply_markup' => $keyfd, 'text' => "Yangi Xabar \n Kimdan: $ufname $uname \n Login: @$ulogin \n ID: $uid \n\n Matn: $text", 'parse_mode' => 'markdown']; xabarYubor($content); } $intype = $inreg[0]; $us_id = $inreg[1]; if ($intype == 'javob') { $keyfd = buildForceReply($selective=true); $content = ['chat_id' => $chat_id, 'reply_markup' => $keyfd, 'text' => "javob matnini kiriting#$us_id", 'parse_mode' => 'markdown']; xabarYubor($content); } $intype = $inreg[0]; $us_id = $inreg[1]; if ($intype == 'javob matnini kiriting'){ $option = $menu; $keyfd = buildKeyBoard($option, $onetime = false); $content = ['chat_id' => $us_id, 'reply_markup' => $keyfd, 'text' => $text, 'parse_mode' => 'markdown']; xabarYubor($content); $option = $menu; $keyfd = buildKeyBoard($option, $onetime = false); $content = ['chat_id' => $admin, 'reply_markup' => $keyfd, 'text' => "Xabar yetkazildi", 'parse_mode' => 'markdown']; xabarYubor($content); }
3 daqiqa 42 soniyadan keyin yozdi:
tekshirip beringlar