Advertisement
infoshayan1

Untitled

Sep 3rd, 2023
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.37 KB | None | 0 0
  1. <?php
  2. require_once 'config.php';
  3. $setting = mysqli_fetch_assoc(mysqli_query($connect, "SELECT * FROM setting"));
  4. //-----------------------------[ text panel ]-------------------------------
  5. $result = $connect->query("SHOW TABLES LIKE 'textbot'");
  6. $table_exists = ($result->num_rows > 0);
  7. $datatextbot = array(
  8. 'text_usertest' => '',
  9. 'text_Purchased_services' => '',
  10. 'text_support' => '',
  11. 'text_help' => '',
  12. 'text_start' => '',
  13. 'text_bot_off' => '',
  14. 'text_dec_info' => '',
  15. 'text_dec_usertest' => '',
  16. 'text_fq' => '',
  17. 'text_account' => '',
  18. 'text_sell' => '',
  19. 'text_Add_Balance' => '',
  20. 'text_Discount' => '',
  21. 'text_Tariff_list' => '',
  22.  
  23. );
  24. if ($table_exists) {
  25. $textdatabot = mysqli_query($connect, "SELECT * FROM textbot");
  26. $data_text_bot = array();
  27. foreach ($textdatabot as $row) {
  28. $data_text_bot[] = array(
  29. 'id_text' => $row['id_text'],
  30. 'text' => $row['text']
  31. );
  32. }
  33. foreach ($data_text_bot as $item) {
  34. if (isset($datatextbot[$item['id_text']])) {
  35. $datatextbot[$item['id_text']] = $item['text'];
  36. }
  37. }
  38. }
  39. $result = mysqli_query($connect, "SELECT id_admin FROM admin");
  40. $admin_ids = array_column(mysqli_fetch_all($result, MYSQLI_ASSOC), 'id_admin');
  41. $keyboard = [
  42. 'keyboard' => [
  43. [['text' => $datatextbot['text_sell']], ['text' => $datatextbot['text_usertest']]],
  44. [['text' => $datatextbot['text_Purchased_services']]],
  45. [['text' => $datatextbot['text_account']],['text' => $datatextbot['text_Tariff_list']]],
  46. [['text' => $datatextbot['text_support']], ['text' => $datatextbot['text_help']]],
  47. ],
  48. 'resize_keyboard' => true
  49. ];
  50. if(in_array($from_id,$admin_ids)){
  51. $keyboard['keyboard'][] = [
  52. ['text' => "ادمین"],
  53. ];
  54. }
  55. $keyboard = json_encode($keyboard);
  56.  
  57.  
  58. $keyboardPanel = json_encode([
  59. 'inline_keyboard' => [
  60. [['text' => $datatextbot['text_Discount'] ,'callback_data' => "Discount"],['text' => $datatextbot['text_Add_Balance'],'callback_data' => "Add_Balance"]],
  61. ],
  62. 'resize_keyboard' => true
  63. ]);
  64. $keyboardadmin = json_encode([
  65. 'keyboard' => [
  66. [['text' => "🔑 تنظیمات اکانت تست"], ['text' => "📊 آمار ربات"]],
  67. [['text' => "🏬 بخش فروشگاه"],['text' => "💵 مالی"]],
  68. [['text' => "👨‍🔧 بخش ادمین"], ['text' => "📝 تنظیم متن ربات"]],
  69. [['text' => "👤 خدمات کاربر"],['text' => " 👤 کاربران ربات"]],
  70. [['text' => "📚 بخش آموزش "], ['text' => "🖥 پنل مرزبان"]],
  71. [['text' => "⚙️ تنظیمات"]],
  72. [['text' => "🏠 بازگشت به منوی اصلی"]]
  73. ],
  74. 'resize_keyboard' => true
  75. ]);
  76. $keyboardpaymentManage = json_encode([
  77. 'keyboard' => [
  78. [['text' => "💳 تنظبمات درگاه آفلاین"]],
  79. [['text' => "💵 تنظیمات nowpayment"]],
  80. [['text' => "💎 درگاه ارزی ریالی"],['text' => "🟡 درگاه آل سات"]],
  81. [['text' => "🔵 درگاه آقای پرداخت"],['text' => "🔴 درگاه پرفکت مانی"]],
  82. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  83. ],
  84. 'resize_keyboard' => true
  85. ]);
  86. $CartManage = json_encode([
  87. 'keyboard' => [
  88. [['text' => "💳 تنظیم شماره کارت"]],
  89. [['text' => "🔌 وضعیت درگاه آفلاین"]],
  90. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  91. ],
  92. 'resize_keyboard' => true
  93. ]);
  94. $alsat = json_encode([
  95. 'keyboard' => [
  96. [['text' => "تنظیم مرچنت"],['text' => "وضعیت درگاه آل سات"]],
  97. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  98. ],
  99. 'resize_keyboard' => true
  100. ]);
  101. $aqayepardakht = json_encode([
  102. 'keyboard' => [
  103. [['text' => "تنظیم مرچنت آقای پرداخت"],['text' => "وضعیت درگاه آقای پرداخت "]],
  104. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  105. ],
  106. 'resize_keyboard' => true
  107. ]);
  108. $NowPaymentsManage = json_encode([
  109. 'keyboard' => [
  110. [['text' => "🧩 api nowpayment"]],
  111. [['text' => "🔌 وضعیت درگاه nowpayments"]],
  112. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  113. ],
  114. 'resize_keyboard' => true
  115. ]);
  116. $admin_section_panel = json_encode([
  117. 'keyboard' => [
  118. [['text' => "👨‍💻 اضافه کردن ادمین"], ['text' => "❌ حذف ادمین"]],
  119. [['text' => "📜 مشاهده لیست ادمین ها"]],
  120. [['text' => "🏠 بازگشت به منوی مدیریت"]],
  121.  
  122. ],
  123. 'resize_keyboard' => true
  124. ]);
  125. $keyboard_usertest = json_encode([
  126. 'keyboard' => [
  127. [['text' => "➕ محدودیت ساخت اکانت تست برای کاربر"]],
  128. [['text' => "➕ محدودیت ساخت اکانت تست برای همه"]],
  129. [['text' => "⏳ زمان سرویس تست"], ['text' => "💾 حجم اکانت تست"]],
  130. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  131. ],
  132. 'resize_keyboard' => true
  133. ]);
  134. $setting_panel = json_encode([
  135. 'keyboard' => [
  136. [['text' => "📡 وضعیت ربات"], ['text' => "♨️ بخش قوانین"]],
  137. [['text' => "📣 تنظیم کانال گزارش"], ['text' => "📯 تنظیمات کانال"]],
  138. [['text' => "👤 دکمه نام کاربری"]],
  139. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  140. ],
  141. 'resize_keyboard' => true
  142. ]);
  143. $valid_Number = json_encode([
  144. 'keyboard' => [
  145. [['text' => "📊 وضعیت تایید شماره کاربر"], ['text' => "👈 تایید دستی شماره"]],
  146. [['text' => "☎️ وضعیت احراز هویت شماره تماس"]],
  147. [['text' => "👀 مشاهده شماره تلفن کاربر"]],
  148. [['text' => "تایید شماره ایرانی 🇮🇷"]],
  149. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  150. ],
  151. 'resize_keyboard' => true
  152. ]);
  153. $PaySettingcard = mysqli_fetch_assoc(mysqli_query($connect, "SELECT (ValuePay) FROM PaySetting WHERE NamePay = 'Cartstatus'"))['ValuePay'];
  154. $PaySettingnow = mysqli_fetch_assoc(mysqli_query($connect, "SELECT (ValuePay) FROM PaySetting WHERE NamePay = 'nowpaymentstatus'"))['ValuePay'];
  155. $PaySettingdigi = mysqli_fetch_assoc(mysqli_query($connect, "SELECT (ValuePay) FROM PaySetting WHERE NamePay = 'digistatus'"))['ValuePay'];
  156. $PaySettingzarin = mysqli_fetch_assoc(mysqli_query($connect, "SELECT (ValuePay) FROM PaySetting WHERE NamePay = 'statuszarinpal'"))['ValuePay'];
  157. $PaySettingaqayepardakht = mysqli_fetch_assoc(mysqli_query($connect, "SELECT (ValuePay) FROM PaySetting WHERE NamePay = 'statusaqayepardakht'"))['ValuePay'];
  158. $step_payment = [
  159. 'inline_keyboard' => []
  160. ];
  161. if($PaySettingcard == "oncard"){
  162. $step_payment['inline_keyboard'][] = [
  163. ['text' => "💳 کارت به کارت" ,'callback_data' => "cart_to_offline"],
  164. ];
  165. }
  166. if($PaySettingnow == "onnowpayment"){
  167. $step_payment['inline_keyboard'][] = [
  168. ['text' => "💵 پرداخت nowpayments", 'callback_data' => "nowpayments" ]
  169. ];
  170. }
  171. if($PaySettingdigi == "ondigi"){
  172. $step_payment['inline_keyboard'][] = [
  173. ['text' => "💎درگاه پرداخت ارزی (ریالی)" , 'callback_data' => "iranpay" ]
  174. ];
  175. }
  176. if($PaySettingzarin == "onzarinpal"){
  177. $step_payment['inline_keyboard'][] = [
  178. ['text' => "🟡 درگاه آل سات" , 'callback_data' => "zarinpal" ]
  179. ];
  180. }
  181. if($PaySettingaqayepardakht == "onaqayepardakht"){
  182. $step_payment['inline_keyboard'][] = [
  183. ['text' => "🔵 درگاه آقای پرداخت" , 'callback_data' => "aqayepardakht" ]
  184. ];
  185. }
  186. $step_payment['inline_keyboard'][] = [
  187. ['text' => "❌ بستن لیست" , 'callback_data' => "colselist" ]
  188. ];
  189. $step_payment = json_encode($step_payment);
  190. $User_Services = json_encode([
  191. 'keyboard' => [
  192. [['text' => "📱 احراز هویت شماره"], ['text' => "📨 ارسال پیام به کاربر"]],
  193. [['text' => "🔒 مسدود کردن کاربر"], ['text' => "🔓 رفع مسدودی کاربر"]],
  194. [['text' => "⬆️️️ افزایش موجودی کاربر"], ['text' => "⬇️ کم کردن موجودی"]],
  195. [['text' => "🤖 افزودن نماینده"],['text' => "🤖 حذف نماینده"]],
  196. [['text' => "👁‍🗨 مشاهده اطلاعات کاربر"], ['text' => "🛍 مشاهده سفارشات کاربر"]],
  197. [['text' => "❌ حذف سرویس کاربر"]],
  198. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  199. ],
  200. 'resize_keyboard' => true
  201. ]);
  202. $keyboardhelpadmin = json_encode([
  203. 'keyboard' => [
  204. [['text' => "📚 اضافه کردن آموزش"], ['text' => "❌ حذف آموزش"]],
  205. [['text' => "💡 وضعیت بخش آموزش"]],
  206. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  207. ],
  208. 'resize_keyboard' => true
  209. ]);
  210. $shopkeyboard = json_encode([
  211. 'keyboard' => [
  212. [['text' => "🛍 اضافه کردن محصول"], ['text' => "❌ حذف محصول"]],
  213. [['text' => "✏️ ویرایش محصول"]],
  214. [['text' => "➕ تنظیم قیمت حجم اضافه"]],
  215. [['text' => "🎁 ساخت کد هدیه"],['text' => "❌ حذف کد هدیه"]],
  216. [['text' => "🎁 ساخت کد تخفیف"],['text' => "❌ حذف کد تخفیف"]],
  217. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  218. ],
  219. 'resize_keyboard' => true
  220. ]);
  221. $confrimrolls = json_encode([
  222. 'keyboard' => [
  223. [['text' => "✅ قوانین را می پذیرم"]],
  224. ],
  225. 'resize_keyboard' => true
  226. ]);
  227. $request_contact = json_encode([
  228. 'keyboard' => [
  229. [['text' => "☎️ ارسال شماره تلفن", 'request_contact' => true]],
  230. [['text' => "🏠 بازگشت به منوی اصلی"]]
  231. ],
  232. 'resize_keyboard' => true
  233. ]);
  234. $rollkey = json_encode([
  235. 'keyboard' => [
  236. [['text' => "💡 روشن / خاموش کردن تایید قوانین"], ['text' => "⚖️ متن قانون"]],
  237. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  238. ],
  239. 'resize_keyboard' => true
  240. ]);
  241. $sendmessageuser = json_encode([
  242. 'keyboard' => [
  243. [['text' => "✉️ ارسال همگانی"], ['text' => "📤 فوروارد همگانی"]],
  244. [['text' => "✍️ ارسال پیام برای یک کاربر"]],
  245. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  246. ],
  247. 'resize_keyboard' => true
  248. ]);
  249. $Feature_status = json_encode([
  250. 'keyboard' => [
  251. [['text' => "قابلیت مشاهده اطلاعات اکانت"]],
  252. [['text' => "قابلیت اکانت تست"], ['text' => "قابلیت آموزش"]],
  253. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  254. ],
  255. 'resize_keyboard' => true
  256. ]);
  257. $keyboardmarzban = json_encode([
  258. 'keyboard' => [
  259. [['text' => '🔌 وضعیت پنل'], ['text' => "🖥 اضافه کردن پنل مرزبان"]],
  260. [['text' => "⚙️ارسال کانفیگ"], ['text' => "✏️ ویرایش پنل"]],
  261. [['text' => "🔗 ارسال لینک سابسکرایبشن"]],
  262. [['text' => "💡 روش ساخت نام کاربری"]],
  263. [['text' => "🍀 قابلیت flow"]],
  264. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  265. ],
  266. 'resize_keyboard' => true
  267. ]);
  268. $channelkeyboard = json_encode([
  269. 'keyboard' => [
  270. [['text' => "📣 تنظیم کانال جوین اجباری"]],
  271. [['text' => "🔑 روشن / خاموش کردن قفل کانال"]],
  272. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  273. ],
  274. 'resize_keyboard' => true
  275. ]);
  276. $backuser = json_encode([
  277. 'keyboard' => [
  278. [['text' => "🏠 بازگشت به منوی اصلی"]]
  279. ],
  280. 'resize_keyboard' => true,
  281. 'input_field_placeholder' =>"برای بازگشت روی دکمه زیر کلیک کنید"
  282. ]);
  283. $backadmin = json_encode([
  284. 'keyboard' => [
  285. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  286. ],
  287. 'resize_keyboard' => true,
  288. 'input_field_placeholder' =>"برای بازگشت روی دکمه زیر کلیک کنید"
  289. ]);
  290. $result = $connect->query("SHOW TABLES LIKE 'marzban_panel'");
  291. $table_exists = ($result->num_rows > 0);
  292. $namepanel = [];
  293. if ($table_exists) {
  294. $marzbnget = mysqli_query($connect, "SELECT * FROM marzban_panel");
  295. while ($row = mysqli_fetch_assoc($marzbnget)) {
  296. $namepanel[] = [$row['name_panel']];
  297. }
  298. $list_marzban_panel = [
  299. 'keyboard' => [],
  300. 'resize_keyboard' => true,
  301. ];
  302. $list_marzban_panel['keyboard'][] = [
  303. ['text' => "🏠 بازگشت به منوی مدیریت"],
  304. ];
  305. foreach ($namepanel as $button) {
  306. $list_marzban_panel['keyboard'][] = [
  307. ['text' => $button[0]]
  308. ];
  309. }
  310. $json_list_marzban_panel = json_encode($list_marzban_panel);
  311. $result = $connect->query("SHOW TABLES LIKE 'help'");
  312. $table_exists = ($result->num_rows > 0);
  313.  
  314. if ($table_exists) {
  315. $help = [];
  316. $helpname = mysqli_query($connect, "SELECT * FROM help");
  317. while ($row = mysqli_fetch_assoc($helpname)) {
  318. $help[] = [$row['name_os']];
  319. }
  320. $help_arr = [
  321. 'keyboard' => [],
  322. 'resize_keyboard' => true,
  323. ];
  324. foreach ($help as $button) {
  325. $help_arr['keyboard'][] = [
  326. ['text' => $button[0]]
  327. ];
  328. }
  329. $help_arr['keyboard'][] = [
  330. ['text' => "🏠 بازگشت به منوی اصلی"],
  331. ];
  332. $json_list_help = json_encode($help_arr);
  333. }
  334. }
  335. $user = mysqli_fetch_assoc(mysqli_query($connect, "SELECT * FROM user WHERE id = '$from_id'"));
  336. $list_marzban_panel_users = [
  337. 'inline_keyboard' => [],
  338. ];
  339. if ($user['step'] == "getusernameinfo") {
  340. foreach ($namepanel as $button) {
  341. $list_marzban_panel_users['inline_keyboard'][] = [
  342. ['text' => $button[0] , 'callback_data' => "locationnotuser_{$button[0]}"]
  343. ];
  344. }
  345. }
  346. else{
  347. foreach ($namepanel as $button) {
  348. $list_marzban_panel_users['inline_keyboard'][] = [
  349. ['text' => $button[0] , 'callback_data' => "location_{$button[0]}"]
  350. ];
  351. }
  352. }
  353. $list_marzban_panel_users['inline_keyboard'][] = [
  354. ['text' => "🏠 بازگشت به منوی اصلی", 'callback_data' => "backuser"],
  355. ];
  356. $list_marzban_panel_user = json_encode($list_marzban_panel_users);
  357. $list_marzban_panel_usertest = [
  358. 'inline_keyboard' => [],
  359. ];
  360. if($setting['MethodUsername'] == "نام کاربری دلخواه"){
  361. foreach ($namepanel as $buttons) {
  362. $list_marzban_panel_usertest['inline_keyboard'][] = [
  363. ['text' => $buttons[0] , 'callback_data' => "locationtest_".$buttons[0]]
  364. ];
  365. }
  366. }else{
  367. foreach ($namepanel as $buttons) {
  368. $list_marzban_panel_usertest['inline_keyboard'][] = [
  369. ['text' => $buttons[0] , 'callback_data' => "locationtestorder_".$buttons[0]]
  370. ];
  371. }
  372. }
  373. $list_marzban_panel_usertest['inline_keyboard'][] = [
  374. ['text' => "🏠 بازگشت به منوی اصلی", 'callback_data' => "backuser"],
  375. ];
  376. $list_marzban_usertest = json_encode($list_marzban_panel_usertest);
  377. $textbot = json_encode([
  378. 'keyboard' => [
  379. [['text' => "تنظیم متن شروع"], ['text' => "دکمه سرویس خریداری شده"]],
  380. [['text' => "دکمه اکانت تست"], ['text' => "دکمه سوالات متداول"]],
  381. [['text' => "متن دکمه 📚 آموزش"], ['text' => "متن دکمه ☎️ پشتیبانی"]],
  382. [['text' => "دکمه افزایش موجودی"]],
  383. [['text' => "متن دکمه خرید اشتراک"], ['text' => "متن دکمه لیست تعرفه"]],
  384. [['text' => "متن توضیحات لیست تعرفه"]],
  385. [['text' => "متن دکمه حساب کاربری"]],
  386. [['text' => "متن دکمه سرویس های خریداری شده"]],
  387. [['text' => "📝 تنظیم متن توضیحات عضویت اجباری"]],
  388. [['text' => "📝 تنظیم متن توضیحات اطلاعات سرویس"]],
  389. [['text' => "📝 تنظیم متن توضیحات سوالات متداول"]],
  390. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  391. ],
  392. 'resize_keyboard' => true
  393. ]);
  394. //--------------------------------------------------
  395. $result = $connect->query("SHOW TABLES LIKE 'protocol'");
  396. $table_exists = ($result->num_rows > 0);
  397. if ($table_exists) {
  398. $getdataprotocol = mysqli_query($connect, "SELECT * FROM protocol");
  399. $protocol = [];
  400. foreach($getdataprotocol as $result)
  401. {
  402. $protocol[] = [['text'=>$result['NameProtocol']]];
  403. }
  404. $protocol[] = [['text'=>"🏠 بازگشت به منوی مدیریت"]];
  405. $keyboardprotocollist = json_encode(['resize_keyboard'=>true,'keyboard'=> $protocol]);
  406. }
  407. //--------------------------------------------------
  408. $result = $connect->query("SHOW TABLES LIKE 'product'");
  409. $table_exists = ($result->num_rows > 0);
  410. if ($table_exists) {
  411. $product = [];
  412. $cleaned_text = mysqli_real_escape_string($connect, $text);
  413. $getdataproduct = mysqli_query($connect, "SELECT * FROM product WHERE Location = '$cleaned_text' OR Location = '/all'");
  414. if(isset($getdataproduct)){
  415. while ($row = mysqli_fetch_assoc($getdataproduct)) {
  416. $product[] = [$row['name_product']];
  417. }
  418. $list_product = [
  419. 'keyboard' => [],
  420. 'resize_keyboard' => true,
  421. ];
  422. $list_product['keyboard'][] = [
  423. ['text' => "🏠 بازگشت به منوی مدیریت"],
  424. ];
  425. foreach ($product as $button) {
  426. $list_product['keyboard'][] = [
  427. ['text' => $button[0]]
  428. ];
  429. }
  430. $json_list_product_list_admin = json_encode($list_product);
  431. }
  432. }
  433. //--------------------------------------------------
  434. $result = $connect->query("SHOW TABLES LIKE 'Discount'");
  435. $table_exists = ($result->num_rows > 0);
  436. if ($table_exists) {
  437. $Discount = [];
  438. $getdataDiscount = mysqli_query($connect, "SELECT * FROM Discount");
  439. while ($row = mysqli_fetch_assoc($getdataDiscount)) {
  440. $Discount[] = [$row['code']];
  441. }
  442. $list_Discount = [
  443. 'keyboard' => [],
  444. 'resize_keyboard' => true,
  445. ];
  446. $list_Discount['keyboard'][] = [
  447. ['text' => "🏠 بازگشت به منوی مدیریت"],
  448. ];
  449. foreach ($Discount as $button) {
  450. $list_Discount['keyboard'][] = [
  451. ['text' => $button[0]]
  452. ];
  453. }
  454. $json_list_Discount_list_admin = json_encode($list_Discount);
  455. }
  456. //--------------------------------------------------
  457. $result = $connect->query("SHOW TABLES LIKE 'DiscountSell'");
  458. $table_exists = ($result->num_rows > 0);
  459. if ($table_exists) {
  460. $DiscountSell = [];
  461. $getdataDiscountsell = mysqli_query($connect, "SELECT * FROM DiscountSell");
  462. while ($row = mysqli_fetch_assoc($getdataDiscountsell)) {
  463. $DiscountSell[] = [$row['codeDiscount']];
  464. }
  465. $list_Discountsell = [
  466. 'keyboard' => [],
  467. 'resize_keyboard' => true,
  468. ];
  469. $list_Discountsell['keyboard'][] = [
  470. ['text' => "🏠 بازگشت به منوی مدیریت"],
  471. ];
  472. foreach ($DiscountSell as $button) {
  473. $list_Discountsell['keyboard'][] = [
  474. ['text' => $button[0]]
  475. ];
  476. }
  477. $json_list_Discount_list_admin_sell = json_encode($list_Discountsell);
  478. }
  479. $payment = json_encode([
  480. 'inline_keyboard' => [
  481. [['text' => "💰 پرداخت و دریافت سرویس", 'callback_data' => "confirmandgetservice"]],
  482. [['text' => "🏠 بازگشت به منوی اصلی" , 'callback_data' => "backuser"]]
  483. ]
  484. ]);
  485. $change_product = json_encode([
  486. 'keyboard' => [
  487. [['text' => "قیمت"], ['text' => "حجم"], ['text' => "زمان"]],
  488. [['text' => "نام محصول"]],
  489. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  490. ],
  491. 'resize_keyboard' => true
  492. ]);
  493. $NotProductUser = json_encode([
  494. 'keyboard' => [
  495. [['text' => "⭕️ نام کاربری من در لیست نیست ⭕️"]],
  496. [['text' => "🏠 بازگشت به منوی اصلی"]]
  497. ],
  498. 'resize_keyboard' => true
  499. ]);
  500.  
  501. $keyboardprotocol = json_encode([
  502. 'keyboard' => [
  503. [['text' => "vless"],['text' => "vmess"],['text' => "trojan"]],
  504. [['text' => "shadowsocks"]],
  505. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  506. ],
  507. 'resize_keyboard' => true
  508. ]);
  509. $MethodUsername = json_encode([
  510. 'keyboard' => [
  511. [['text' => "نام کاربری + عدد به ترتیب"]],
  512. [['text' => "آیدی عددی + حروف و عدد رندوم"]],
  513. [['text' => "نام کاربری + حروف و عدد رندوم"]],
  514. [['text' => "نام کاربری دلخواه"]],
  515. [['text' => "متن دلخواه + عدد رندوم"]],
  516. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  517. ],
  518. 'resize_keyboard' => true
  519. ]);
  520. $optionMarzban = json_encode([
  521. 'keyboard' => [
  522. [['text' => "✍️ نام پنل"],['text' => "❌ حذف پنل"]],
  523. [['text'=>"🔗 ویرایش آدرس پنل"],['text' => "👤 ویرایش نام کاربری"]],
  524. [['text' => "🔐 ویرایش رمز عبور"],['text' => "⚙️ تنظیمات پروتکل"]],
  525. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  526. ],
  527. 'resize_keyboard' => true
  528. ]);
  529. $supportoption = json_encode([
  530. 'inline_keyboard' => [
  531. [
  532. ['text' => "⁉️ سوالات متداول", 'callback_data' => "fqQuestions"] ,
  533. ],
  534. [
  535. ['text' => "🎟 ارسال پیام به پشتیبانی", 'callback_data' => "support"],
  536. ],
  537. ]
  538. ]);
  539. $adminrule = json_encode([
  540. 'keyboard' => [
  541. [['text' => "administrator"],['text' => "Seller"],['text' => "support"]],
  542. [['text' => "🏠 بازگشت به منوی مدیریت"]]
  543. ],
  544. 'resize_keyboard' => true
  545. ]);
  546.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement