forked from mahdiMGF2/mirzabot
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkeyboard.php
More file actions
1679 lines (1658 loc) · 78.1 KB
/
keyboard.php
File metadata and controls
1679 lines (1658 loc) · 78.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
require_once 'config.php';
$setting = select("setting", "*", null, null,"select");
$textbotlang = languagechange(__DIR__.'/text.json');
if (!function_exists('getPaySettingValue')) {
function getPaySettingValue($name)
{
$result = select("PaySetting", "ValuePay", "NamePay", $name, "select");
return $result['ValuePay'] ?? null;
}
}
//-----------------------------[ text panel ]-------------------------------
$stmt = $pdo->prepare("SHOW TABLES LIKE 'textbot'");
$stmt->execute();
$result = $stmt->fetchAll();
$table_exists = count($result) > 0;
$datatextbot = array(
'text_usertest' => '',
'text_Purchased_services' => '',
'text_support' => '',
'text_help' => '',
'text_start' => '',
'text_bot_off' => '',
'text_dec_info' => '',
'text_dec_usertest' => '',
'text_fq' => '',
'accountwallet' => '',
'text_sell' => '',
'text_Add_Balance' => '',
'text_Discount' => '',
'text_Tariff_list' => '',
'text_affiliates' => '',
'carttocart' => '',
'textnowpayment' => '',
'textnowpaymenttron' => '',
'iranpay1' => '',
'iranpay2' => '',
'iranpay3' => '',
'aqayepardakht' => '',
'zarinpal' => '',
'text_fq' => '',
'textpaymentnotverify' =>"",
'textrequestagent' => '',
'textpanelagent' => '',
'text_wheel_luck' => '',
'text_star_telegram' => "",
'text_extend' => '',
'textsnowpayment' => ''
);
if ($table_exists) {
$textdatabot = select("textbot", "*", null, null,"fetchAll");
$data_text_bot = array();
foreach ($textdatabot as $row) {
$data_text_bot[] = array(
'id_text' => $row['id_text'],
'text' => $row['text']
);
}
foreach ($data_text_bot as $item) {
if (isset($datatextbot[$item['id_text']])) {
$datatextbot[$item['id_text']] = $item['text'];
}
}
}
$adminrulecheck = select("admin", "*", "id_admin", $from_id,"select");
if (!$adminrulecheck) {
$adminrulecheck = array(
'rule' => '',
);
}
$users = select("user", "*", "id", $from_id,"select");
if ($users == false) {
$users = array();
$users = array(
'step' => '',
'agent' => '',
'limit_usertest' => '',
'Processing_value' => '',
'Processing_value_four' => '',
'cardpayment' => ""
);
}
$replacements = [
'text_usertest' => $datatextbot['text_usertest'],
'text_Purchased_services' => $datatextbot['text_Purchased_services'],
'text_support' => $datatextbot['text_support'],
'text_help' => $datatextbot['text_help'],
'accountwallet' => $datatextbot['accountwallet'],
'text_sell' => $datatextbot['text_sell'],
'text_Tariff_list' => $datatextbot['text_Tariff_list'],
'text_affiliates' => $datatextbot['text_affiliates'],
'text_wheel_luck' => $datatextbot['text_wheel_luck'],
'text_extend' => $datatextbot['text_extend']
];
$admin_idss = select("admin", "*", "id_admin", $from_id,"count");
$temp_addtional_key = [];
$keyboardLayout = json_decode($setting['keyboardmain'], true);
$keyboardRows = [];
if (is_array($keyboardLayout) && isset($keyboardLayout['keyboard']) && is_array($keyboardLayout['keyboard'])) {
$keyboardRows = $keyboardLayout['keyboard'];
}
if ($setting['inlinebtnmain'] == "oninline" && !empty($keyboardRows)) {
$trace_keyboard = $keyboardRows;
foreach ($trace_keyboard as $key => $callback_set) {
foreach ($callback_set as $keyboard_key => $keyboard) {
if ($keyboard['text'] == "text_sell") {
$trace_keyboard[$key][$keyboard_key]['callback_data'] = "buy";
}
if ($keyboard['text'] == "accountwallet") {
$trace_keyboard[$key][$keyboard_key]['callback_data'] = "account";
}
if ($keyboard['text'] == "text_Tariff_list") {
$trace_keyboard[$key][$keyboard_key]['callback_data'] = "Tariff_list";
}
if ($keyboard['text'] == "text_wheel_luck") {
$trace_keyboard[$key][$keyboard_key]['callback_data'] = "wheel_luck";
}
if ($keyboard['text'] == "text_affiliates") {
$trace_keyboard[$key][$keyboard_key]['callback_data'] = "affiliatesbtn";
}
if ($keyboard['text'] == "text_extend") {
$trace_keyboard[$key][$keyboard_key]['callback_data'] = "extendbtn";
}
if ($keyboard['text'] == "text_support") {
$trace_keyboard[$key][$keyboard_key]['callback_data'] = "supportbtns";
}
if ($keyboard['text'] == "text_Purchased_services") {
$trace_keyboard[$key][$keyboard_key]['callback_data'] = "backorder";
}
if ($keyboard['text'] == "text_help") {
$trace_keyboard[$key][$keyboard_key]['callback_data'] = "helpbtns";
}
if ($keyboard['text'] == "text_usertest") {
$trace_keyboard[$key][$keyboard_key]['callback_data'] = "usertestbtn";
}
}
}
if ($admin_idss != 0) {
$temp_addtional_key[] = ['text' => $textbotlang['Admin']['textpaneladmin'], 'callback_data' => "admin"];
}
if ($users['agent'] != "f") {
$temp_addtional_key[] = ['text' => $datatextbot['textpanelagent'], 'callback_data' => "agentpanel"];
}
if ($users['agent'] == "f" && $setting['statusagentrequest'] == "onrequestagent") {
$temp_addtional_key[] = ['text' => $datatextbot['textrequestagent'], 'callback_data' => "requestagent"];
}
$keyboard = ['inline_keyboard' => []];
$keyboardcustom = $trace_keyboard;
$keyboardcustom = json_decode(strtr(strval(json_encode($keyboardcustom)), $replacements), true);
$keyboardcustom[] = $temp_addtional_key;
$keyboard['inline_keyboard'] = $keyboardcustom;
$keyboard = json_encode($keyboard);
} else {
if ($admin_idss != 0) {
$temp_addtional_key[] = ['text' => $textbotlang['Admin']['textpaneladmin']];
}
if ($users['agent'] != "f") {
$temp_addtional_key[] = ['text' => $datatextbot['textpanelagent']];
}
if ($users['agent'] == "f" && $setting['statusagentrequest'] == "onrequestagent") {
$temp_addtional_key[] = ['text' => $datatextbot['textrequestagent']];
}
$keyboard = ['keyboard' => [], 'resize_keyboard' => true];
$keyboardcustom = $keyboardRows;
$keyboardcustom = json_decode(strtr(strval(json_encode($keyboardcustom)), $replacements), true);
$keyboardcustom[] = $temp_addtional_key;
$keyboard['keyboard'] = $keyboardcustom;
$keyboard = json_encode($keyboard);
}
$keyboardPanel = json_encode([
'inline_keyboard' => [
[['text' => $datatextbot['text_Discount'] ,'callback_data' => "Discount"],
['text' => $datatextbot['text_Add_Balance'] ,'callback_data' => "Add_Balance"]
],
[['text' => $textbotlang['users']['backbtn'] ,'callback_data' => "backuser"]],
],
'resize_keyboard' => true
]);
if($adminrulecheck['rule'] == "administrator"){
$keyboardadmin = json_encode([
'keyboard' => [
[['text' => $textbotlang['Admin']['Status']['btn']]],
[['text' => $textbotlang['Admin']['btnkeyboardadmin']['managementpanel']],['text' => $textbotlang['Admin']['btnkeyboardadmin']['addpanel']]],
[['text' => "⏳ تنظیم سریع قیمت زمان"],['text' => "🔋 تنظیم سریع قیمت حجم"]],
[['text' => $textbotlang['Admin']['btnkeyboardadmin']['managruser']],['text' => "🏬 تنظیمات فروشگاه"]],
[['text' => "💎 مالی"]],
[['text' => "🤙 بخش پشتیبانی"],['text' => "📚 بخش آموزش"]],
[['text' => "📬 گزارش ربات"],['text' => "🛠 قابلیت های پنل"]],
[['text' => "⚙️ تنظیمات عمومی"],['text' => "💵 رسید های تایید نشده"]],
[['text' => $textbotlang['users']['backbtn']]]
],
'resize_keyboard' => true
]);
}
if($adminrulecheck['rule'] == "Seller"){
$keyboardadmin = json_encode([
'keyboard' => [
[['text' => $textbotlang['Admin']['Status']['btn']]],
[['text' => "👤 مدیریت کاربر"]],
[['text' => $textbotlang['users']['backbtn']]]
],
'resize_keyboard' => true
]);
}
if($adminrulecheck['rule'] == "support"){
$keyboardadmin = json_encode([
'keyboard' => [
[['text' => "👤 مدیریت کاربر"],['text' =>"👁🗨 جستجو کاربر"]],
[['text' => $textbotlang['users']['backbtn']]]
],
'resize_keyboard' => true
]);
}
$CartManage = json_encode([
'keyboard' => [
[['text' => "🗂 نام درگاه کارت به کارت"]],
[['text' => "💳 تنظیم شماره کارت"],['text' => "❌ حذف شماره کارت"]],
[['text' => "👤 آیدی پشتیبانی", ],['text' => "💳 درگاه آفلاین در پیوی"]],
[['text' => "💰 غیرفعالسازی نمایش شماره کارت"],['text' => "💰 فعالسازی نمایش شماره کارت"]],
[['text' => "♻️ نمایش گروهی شماره کارت"]],
[['text' => "📄 خروجی افراد شماره کارت فعال"]],
[['text' => "♻️ تایید خودکار رسید"],['text' => "💰 کش بک کارت به کارت"]],
[['text' => "🔒 نمایش کارت به کارت پس از اولین پرداخت"]],
[['text' => "⬇️ حداقل مبلغ کارت به کارت"],['text' => "⬆️ حداکثر مبلغ کارت به کارت"]],
[['text' => "📚 تنظیم آموزش کارت به کارت"]],
[['text' => "🤖 تایید رسید بدون بررسی"]],
[['text' => "💳 استثناء کردن کاربر از تایید خودکار"]],
[['text' => "⏳ زمان تایید خودکار بدون بررسی"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$trnado = json_encode([
'keyboard' => [
[['text' => "🗂 نام درگاه ارزی ریالی دوم"]],
[['text' => "API T"]],
[['text' => "تنظیم آدرس api"]],
[['text' => "💰 کش بک ارزی ریالی دوم"]],
[['text' => "⬇️ حداقل مبلغ ارزی ریالی دوم"],['text' => "⬆️ حداکثر مبلغ ارزی ریالی دوم"]],
[['text' => "📚 تنظیم آموزش ارزی ریالی دوم"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$keyboardzarinpal = json_encode([
'keyboard' => [
[['text' => "🗂 نام درگاه زرین پال"],['text' => "مرچنت زرین پال"]],
[['text' => "💰 کش بک زرین پال"]],
[['text' => "⬇️ حداقل مبلغ زرین پال"],['text' => "⬆️ حداکثر مبلغ زرین پال"]],
[['text' => "📚 تنظیم آموزش زرین پال"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$aqayepardakht = json_encode([
'keyboard' => [
[['text' => "🗂 نام درگاه آقای پرداخت"]],
[['text' => "تنظیم مرچنت آقای پرداخت"],['text' => "💰 کش بک آقای پرداخت"]],
[['text' => "⬇️ حداقل مبلغ آقای پرداخت"],['text' => "⬆️ حداکثر مبلغ آقای پرداخت"]],
[['text' => "📚 تنظیم آموزش درگاه اقای پرداخت"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$NowPaymentsManage = json_encode([
'keyboard' => [
[['text' => "🗂 نام درگاه plisio"]],
[['text' => "🧩 api plisio"],['text'=> "💰 کش بک plisio"]],
[['text' => "⬇️ حداقل مبلغ plisio"],['text' =>"⬆️ حداکثر مبلغ plisio"]],
[['text' => "📚 تنظیم آموزش plisio"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$setting_panel = json_encode([
'keyboard' => [
[['text' => "⚙️ وضعیت قابلیت ها"]],
[['text' => "📣 گزارشات ربات"], ['text' => "📯 تنظیمات کانال"]],
[['text' => "✅ فعالسازی پنل تحت وب"]],
[['text' => "🗑 بهینه سازی ربات "]],
[['text' => "📝 تنظیم متن ربات"],['text' => "👨🔧 بخش ادمین"]],
[['text' => "➕ محدودیت ساخت اکانت تست برای همه"]],
[['text' => "💰 مبلغ عضویت نمایندگی"],['text' => "🖼 پس زمینه کیوآرکد"]],
[['text' => "🔗 وبهوک مجدد ربات های نماینده"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$PaySettingcard = getPaySettingValue("Cartstatus");
$PaySettingnow = getPaySettingValue("nowpaymentstatus");
$PaySettingaqayepardakht = getPaySettingValue("statusaqayepardakht");
$PaySettingpv = getPaySettingValue("Cartstatuspv");
$usernamecart = getPaySettingValue("CartDirect");
$Swapino = getPaySettingValue("statusSwapWallet");
$trnadoo = getPaySettingValue("statustarnado");
$paymentverify = getPaySettingValue("checkpaycartfirst");
$stmt = $pdo->prepare("SELECT * FROM Payment_report WHERE id_user = '$from_id' AND payment_Status = 'paid' ");
$stmt->execute();
$paymentexits = $stmt->rowCount();
$zarinpal = getPaySettingValue("zarinpalstatus");
$affilnecurrency = getPaySettingValue("digistatus");
$arzireyali3 = getPaySettingValue("statusiranpay3");
$paymentstatussnotverify = getPaySettingValue("paymentstatussnotverify");
$paymentsstartelegram = getPaySettingValue("statusstar");
$payment_status_nowpayment = getPaySettingValue("statusnowpayment");
$step_payment = [
'inline_keyboard' => []
];
if($PaySettingcard == "oncard" && intval($users['cardpayment']) == 1){
if($PaySettingpv == "oncardpv"){
$step_payment['inline_keyboard'][] = [
['text' => $datatextbot['carttocart'] ,'url' => "https://t.me/$usernamecart"],
];
}else{
$step_payment['inline_keyboard'][] = [
['text' => $datatextbot['carttocart'] ,'callback_data' => "cart_to_offline"],
];
}
}
if(($paymentexits == 0 && $paymentverify == "onpayverify"))unset($step_payment['inline_keyboard']);
if($PaySettingnow == "onnowpayment"){
$step_payment['inline_keyboard'][] = [
['text' => $datatextbot['textnowpayment'], 'callback_data' => "plisio" ]
];
}
if($payment_status_nowpayment == "1"){
$step_payment['inline_keyboard'][] = [
['text' => $datatextbot['textsnowpayment'], 'callback_data' => "nowpayment" ]
];
}
if($affilnecurrency == "ondigi"){
$step_payment['inline_keyboard'][] = [
['text' => $datatextbot['textnowpaymenttron'], 'callback_data' => "digitaltron" ]
];
}
if($Swapino == "onSwapinoBot"){
$step_payment['inline_keyboard'][] = [
['text' => $datatextbot['iranpay2'] , 'callback_data' => "iranpay1" ]
];
}
if($trnadoo == "onternado"){
$step_payment['inline_keyboard'][] = [
['text' => $datatextbot['iranpay3'] , 'callback_data' => "iranpay2" ]
];
}
if($arzireyali3 == "oniranpay3" && $paymentexits >= 2){
$step_payment['inline_keyboard'][] = [
['text' => $datatextbot['iranpay1'] , 'callback_data' => "iranpay3" ]
];
}
if($PaySettingaqayepardakht == "onaqayepardakht"){
$step_payment['inline_keyboard'][] = [
['text' => $datatextbot['aqayepardakht'] , 'callback_data' => "aqayepardakht" ]
];
}
if($zarinpal == "onzarinpal"){
$step_payment['inline_keyboard'][] = [
['text' => $datatextbot['zarinpal'] , 'callback_data' => "zarinpal" ]
];
}
if($paymentstatussnotverify == "onverifypay"){
$step_payment['inline_keyboard'][] = [
['text' => $datatextbot['textpaymentnotverify'] , 'callback_data' => "paymentnotverify" ]
];
}
if(intval($paymentsstartelegram) == 1){
$step_payment['inline_keyboard'][] = [
['text' => $datatextbot['text_star_telegram'] , 'callback_data' => "startelegrams" ]
];
}
$step_payment['inline_keyboard'][] = [
['text' => "❌ بستن لیست" , 'callback_data' => "colselist" ]
];
$step_payment = json_encode($step_payment);
$keyboardhelpadmin = json_encode([
'keyboard' => [
[['text' => "📚 اضافه کردن آموزش"], ['text' => "❌ حذف آموزش"]],
[['text' => "✏️ ویرایش آموزش"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$shopkeyboard = json_encode([
'keyboard' => [
[['text' => "🛒 وضعیت قابلیت های فروشگاه"]],
[['text' => "🗂 مدیریت دسته بندی"],['text' => "🛍 مدیریت محصولات"]],
[['text' => "🎁 ساخت کد هدیه"],['text' => "❌ حذف کد هدیه"]],
[['text' => "🎁 ساخت کد تخفیف"],['text' => "❌ حذف کد تخفیف"]],
[['text' => "⬇️ حداقل موجودی خرید عمده"],['text' => "🎁 کش بک تمدید"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$keyboard_Category_manage = json_encode([
'keyboard' => [
[['text' => "🛒 اضافه کردن دسته بندی"],['text' => "❌ حذف دسته بندی"]],
[['text' => "✏️ ویرایش دسته بندی"]],
[['text' => "⬅️ بازگشت به منوی فروشگاه"]]
],
'resize_keyboard' => true
]);
$keyboard_shop_manage = json_encode([
'keyboard' => [
[['text' => "🛍 اضافه کردن محصول"], ['text' => "❌ حذف محصول"]],
[['text' => "✏️ ویرایش محصول"]],
[['text' => "⬆️ افزایش گروهی قیمت"],['text' => "⬇️ کاهش گروهی قیمت"]],
[['text' => "⬅️ بازگشت به منوی فروشگاه"]]
],
'resize_keyboard' => true
]);
if($setting['inlinebtnmain'] == "oninline"){
$confrimrolls = json_encode([
'inline_keyboard' => [
[
['text' => "✅ قوانین را می پذیرم", 'callback_data' => "acceptrule"],
],
]
]);
}else{
$confrimrolls = json_encode([
'keyboard' => [
[['text' => "✅ قوانین را می پذیرم"]],
],
'resize_keyboard' => true
]);
}
$request_contact = json_encode([
'keyboard' => [
[['text' => "☎️ ارسال شماره تلفن", 'request_contact' => true]],
[['text' => $textbotlang['users']['backbtn']]]
],
'resize_keyboard' => true
]);
$Feature_status = json_encode([
'keyboard' => [
[['text' => "قابلیت مشاهده اطلاعات اکانت"]],
[['text' => "قابلیت اکانت تست"], ['text' => "قابلیت آموزش"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$channelkeyboard = json_encode([
'keyboard' => [
[['text' => "اضافه کردن کانال"],['text' => "حذف کانال"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
if($setting['inlinebtnmain'] == "oninline"){
$backuser = json_encode([
'inline_keyboard' => [
[['text' => $textbotlang['users']['backbtn'], 'callback_data' => "backuser"]]
],
]);
}else{
$backuser = json_encode([
'keyboard' => [
[['text' => $textbotlang['users']['backbtn']]]
],
'resize_keyboard' => true,
'input_field_placeholder' =>"برای بازگشت روی دکمه زیر کلیک کنید"
]);
}
$backadmin = json_encode([
'keyboard' => [
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true,
'input_field_placeholder' =>"برای بازگشت روی دکمه زیر کلیک کنید"
]);
//------------------ [ list panel ]----------------//
$stmt = $pdo->prepare("SHOW TABLES LIKE 'marzban_panel'");
$stmt->execute();
$result = $stmt->fetchAll();
$table_exists = count($result) > 0;
$namepanel = [];
if ($table_exists) {
$stmt = $pdo->prepare("SELECT * FROM marzban_panel");
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$namepanel[] = [$row['name_panel']];
}
$list_marzban_panel = [
'keyboard' => [],
'resize_keyboard' => true,
];
foreach ($namepanel as $button) {
$list_marzban_panel['keyboard'][] = [
['text' => $button[0]]
];
}
$list_marzban_panel['keyboard'][] = [
['text' => $textbotlang['Admin']['backadmin']],
['text' => $textbotlang['Admin']['backmenu']]
];
$json_list_marzban_panel = json_encode($list_marzban_panel);
//------------------ [ list panel inline ]----------------//
$stmt = $pdo->prepare("SELECT * FROM marzban_panel");
$stmt->execute();
$list_marzban_panel_edit_product = ['inline_keyboard' => []];
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$list_marzban_panel_edit_product['inline_keyboard'][] = [['text' =>$row['name_panel'],'callback_data' => 'locationedit_'.$row['code_panel']]];
}
$list_marzban_panel_edit_product['inline_keyboard'][] = [['text' =>"همه پنل ها",'callback_data' => 'locationedit_all']];
$list_marzban_panel_edit_product['inline_keyboard'][] = [['text' =>"▶️ بازگشت به منوی قبل",'callback_data' => 'backproductadmin']];
$list_marzban_panel_edit_product = json_encode($list_marzban_panel_edit_product);
}
//------------------ [ list channel ]----------------//
$stmt = $pdo->prepare("SHOW TABLES LIKE 'channels'");
$stmt->execute();
$result = $stmt->fetchAll();
$table_exists = count($result) > 0;
$list_channels = [];
if ($table_exists) {
$stmt = $pdo->prepare("SELECT * FROM channels");
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$list_channels[] = [$row['link']];
}
$list_channels_join = [
'keyboard' => [],
'resize_keyboard' => true,
];
foreach ($list_channels as $button) {
$list_channels_join['keyboard'][] = [
['text' => $button[0]]
];
}
$list_channels_join['keyboard'][] = [
['text' => $textbotlang['Admin']['backadmin']],
['text' => $textbotlang['Admin']['backmenu']]
];
$list_channels_joins = json_encode($list_channels_join);
}
//------------------ [ list card ]----------------//
$stmt = $pdo->prepare("SHOW TABLES LIKE 'card_number'");
$stmt->execute();
$result = $stmt->fetchAll();
$table_exists = count($result) > 0;
$list_card = [];
if ($table_exists) {
$stmt = $pdo->prepare("SELECT * FROM card_number");
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$list_card[] = [$row['cardnumber']];
}
$list_card_remove = [
'keyboard' => [],
'resize_keyboard' => true,
];
foreach ($list_card as $button) {
$list_card_remove['keyboard'][] = [
['text' => $button[0]]
];
}
$list_card_remove['keyboard'][] = [
['text' => $textbotlang['Admin']['backadmin']],
['text' => $textbotlang['Admin']['backmenu']]
];
$list_card_remove = json_encode($list_card_remove);
}
//------------------ [ help list ]----------------//
$stmt = $pdo->prepare("SHOW TABLES LIKE 'help'");
$stmt->execute();
$result = $stmt->fetchAll();
$table_exists = count($result) > 0;
if ($table_exists) {
$stmt = $pdo->prepare("SELECT * FROM help");
$stmt->execute();
$helpkey = [];
$stmt = $pdo->prepare("SELECT * FROM help");
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$helpkey[] = [$row['name_os']];
}
$help_arrke = [
'keyboard' => [],
'resize_keyboard' => true,
];
foreach ($helpkey as $button) {
$help_arrke['keyboard'][] = [
['text' => $button[0]]
];
}
$help_arrke['keyboard'][] = [
['text' => $textbotlang['users']['backbtn']],
];
$json_list_helpkey = json_encode($help_arrke);
}
//------------------ [ help list ]----------------//
$stmt = $pdo->prepare("SELECT * FROM help");
$stmt->execute();
$helpcwtgory = ['inline_keyboard' => []];
$datahelp = [];
while ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {
if(in_array($result['category'],$datahelp))continue;
if($result['category'] == null)continue;
$datahelp[] = $result['category'];
$helpcwtgory['inline_keyboard'][] = [['text' => $result['category'], 'callback_data' => "helpctgoryـ{$result['category']}"]
];
}
if($setting['linkappstatus'] == "1"){
$helpcwtgory['inline_keyboard'][] = [
['text' => "🔗 لینک دانلود برنامه", 'callback_data' => "linkappdownlod"],
];
}
$helpcwtgory['inline_keyboard'][] = [
['text' => $textbotlang['users']['backbtn'], 'callback_data' => "backuser"],
];
$json_list_helpـcategory = json_encode($helpcwtgory);
//------------------ [ help app ]----------------//
$stmt = $pdo->prepare("SELECT * FROM app");
$stmt->execute();
$helpapp = ['inline_keyboard' => []];
while ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {
$helpapp['inline_keyboard'][] = [['text' => $result['name'], 'url' =>$result['link']]
];
}
$helpapp['inline_keyboard'][] = [
['text' => $textbotlang['users']['backbtn'], 'callback_data' => "backuser"],
];
$json_list_helpـlink = json_encode($helpapp);
//------------------ [ help app admin ]----------------//
$stmt = $pdo->prepare("SELECT * FROM app");
$stmt->execute();
$helpappremove = ['keyboard' => [],'resize_keyboard' => true];
while ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {
$helpappremove['keyboard'][] = [
['text' => $result['name']],
];
}
$helpappremove['keyboard'][] = [
['text' => $textbotlang['Admin']['backadmin']],
];
$json_list_remove_helpـlink = json_encode($helpappremove);
//------------------ [ listpanelusers ]----------------//
$stmt = $pdo->prepare("SELECT * FROM marzban_panel WHERE status = 'active' AND (agent = :agent OR agent = 'all')");
$stmt->bindParam(':agent', $users['agent']);
$stmt->execute();
$list_marzban_panel_users = ['inline_keyboard' => []];
$panelcount = select("marzban_panel","*","status","active","count");
if($panelcount > 10){
$temp_row = [];
while ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {
if ($result['hide_user'] != null && in_array($from_id, json_decode($result['hide_user'], true))) continue;
if($result['type'] == "Manualsale"){
$stmt = $pdo->prepare("SELECT * FROM manualsell WHERE codepanel = :codepanel AND status = 'active'");
$stmt->bindParam(':codepanel', $result['code_panel']);
$stmt->execute();
$configexits = $stmt->rowCount();
if(intval($configexits) == 0)continue;
}
if ($users['step'] == "getusernameinfo") {
$temp_row[] = ['text' => $result['name_panel'], 'callback_data' => "locationnotuser_{$result['code_panel']}"];
} else {
$temp_row[] = ['text' => $result['name_panel'], 'callback_data' => "location_{$result['code_panel']}"];
}
if (count($temp_row) == 2) {
$list_marzban_panel_users['inline_keyboard'][] = $temp_row;
$temp_row = [];
}
}
if (!empty($temp_row)) {
$list_marzban_panel_users['inline_keyboard'][] = $temp_row;
}
}else{
while ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {
if($result['type'] == "Manualsale"){
$stmts = $pdo->prepare("SELECT * FROM manualsell WHERE codepanel = :codepanel AND status = 'active'");
$stmts->bindParam(':codepanel', $result['code_panel']);
$stmts->execute();
$configexits = $stmts->rowCount();
if(intval($configexits) == 0)continue;
}
if($result['hide_user'] != null and in_array($from_id,json_decode($result['hide_user'],true)))continue;
if ($users['step'] == "getusernameinfo") {
$list_marzban_panel_users['inline_keyboard'][] = [
['text' => $result['name_panel'], 'callback_data' => "locationnotuser_{$result['code_panel']}"]
];
}
else{
$list_marzban_panel_users['inline_keyboard'][] = [['text' => $result['name_panel'], 'callback_data' => "location_{$result['code_panel']}"]
];
}
}
}
$statusnote = false;
if($setting['statusnamecustom'] == 'onnamecustom')$statusnote = true;
if($setting['statusnoteforf'] == "0" && $users['agent'] == "f")$statusnote = false;
if($statusnote){
$list_marzban_panel_users['inline_keyboard'][] = [
['text' => $textbotlang['users']['backbtn'], 'callback_data' => "buyback"],
];
}else{
$list_marzban_panel_users['inline_keyboard'][] = [
['text' => $textbotlang['users']['backbtn'], 'callback_data' => "backuser"],
];
}
$list_marzban_panel_user = json_encode($list_marzban_panel_users);
//------------------ [ listpanelusers omdhe ]----------------//
$stmt = $pdo->prepare("SELECT * FROM marzban_panel WHERE status = 'active' AND (agent = :agent OR agent = 'all')");
$stmt->bindParam(':agent', $users['agent']);
$stmt->execute();
$list_marzban_panel_users_om = ['inline_keyboard' => []];
while ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {
if($result['hide_user'] != null and in_array($from_id,json_decode($result['hide_user'],true)))continue;
$list_marzban_panel_users_om['inline_keyboard'][] = [['text' => $result['name_panel'], 'callback_data' => "locationom_{$result['code_panel']}"]
];
}
$list_marzban_panel_users_om['inline_keyboard'][] = [
['text' => $textbotlang['users']['backbtn'], 'callback_data' => "backuser"],
];
$list_marzban_panel_userom = json_encode($list_marzban_panel_users_om);
//------------------ [ change location ]----------------//
$stmt = $pdo->prepare("SELECT * FROM marzban_panel WHERE status = 'active' AND (agent = '{$users['agent']}' OR agent = 'all') AND name_panel != '{$users['Processing_value_four']}'");
$stmt->execute();
$list_marzban_panel_users_change = ['inline_keyboard' => []];
$panelcount = select("marzban_panel","*","status","active","count");
if($panelcount > 10){
$temp_row = [];
while ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {
if ($result['hide_user'] != null && in_array($from_id, json_decode($result['hide_user'], true))) continue;
$temp_row[] = ['text' => $result['name_panel'], 'callback_data' => "changelocselectlo-{$result['code_panel']}"];
if (count($temp_row) == 2) {
$list_marzban_panel_users_change['inline_keyboard'][] = $temp_row;
$temp_row = [];
}
}
if (!empty($temp_row)) {
$list_marzban_panel_users_change['inline_keyboard'][] = $temp_row;
}
}else{
while ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {
if($result['hide_user'] != null and in_array($from_id,json_decode($result['hide_user'],true)))continue;
$list_marzban_panel_users_change['inline_keyboard'][] = [['text' => $result['name_panel'], 'callback_data' => "changelocselectlo-{$result['code_panel']}"]
];
}
}
$list_marzban_panel_users_change['inline_keyboard'][] = [
['text' => $textbotlang['users']['backbtn'], 'callback_data' => "backorder"],
];
$list_marzban_panel_userschange = json_encode($list_marzban_panel_users_change);
//------------------ [ listpanelusers test ]----------------//
$stmt = $pdo->prepare("SELECT * FROM marzban_panel WHERE TestAccount = 'ONTestAccount' AND (agent = '{$users['agent']}' OR agent = 'all')");
$stmt->execute();
$list_marzban_panel_usertest = ['inline_keyboard' => []];
while ($result = $stmt->fetch(PDO::FETCH_ASSOC)) {
if($result['hide_user'] != null and in_array($from_id,json_decode($result['hide_user'],true)))continue;
$list_marzban_panel_usertest['inline_keyboard'][] = [['text' => $result['name_panel'], 'callback_data' => "locationtest_{$result['code_panel']}"]
];
}
$list_marzban_panel_usertest['inline_keyboard'][] = [
['text' => $textbotlang['users']['backbtn'], 'callback_data' => "backuser"],
];
$list_marzban_usertest = json_encode($list_marzban_panel_usertest);
$textbot = json_encode([
'keyboard' => [
[['text' => "تنظیم متن شروع"], ['text' => "دکمه سرویس خریداری شده"]],
[['text' => "دکمه اکانت تست"], ['text' => "دکمه سوالات متداول"]],
[['text' => "متن دکمه 📚 آموزش"], ['text' => "متن دکمه ☎️ پشتیبانی"]],
[['text' => "دکمه افزایش موجودی"],['text' => "متن دکمه زیرمجموعه گیری"]],
[['text' => "متن دکمه خرید اشتراک"], ['text' => "متن دکمه لیست تعرفه"]],
[['text' => "متن توضیحات لیست تعرفه"]],
[['text' => "متن دکمه کیف پول"],['text' => "متن پیش فاکتور"]],
[['text' => "📝 تنظیم متن توضیحات عضویت اجباری"]],
[['text' => "📝 تنظیم متن توضیحات سوالات متداول"]],
[['text' => "⚖️ متن قانون"],['text' => "متن بعد خرید"]],
[['text' => "متن بعد خرید ibsng"],['text' => "دکمه تمدید"]],
[['text' => "متن بعد گرفتن اکانت تست"],['text' =>"متن کرون تست"]],
[['text' => "متن بعد گرفتن اکانت دستی"]],
[['text' => "متن بعد گرفتن اکانت WGDashboard"]],
[['text' => "متن انتخاب لوکیشن"],['text' => "متن دکمه کد هدیه"]],
[['text' => "متن درخواست نمایندگی"],['text' => "متن دکمه نمایندگی"]],
[['text' => "متن دکمه گردونه شانس"],['text' => "متن کارت به کارت"]],
[['text' => "تنظیم متن کارت به کارت خودکار"]],
[['text' => "متن توضیحات درخواست نمایندگی"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
//--------------------------------------------------
$stmt = $pdo->prepare("SHOW TABLES LIKE 'protocol'");
$stmt->execute();
$result = $stmt->fetchAll();
$table_exists = count($result) > 0;
if ($table_exists) {
$getdataprotocol = select("protocol","*",null,null,"fetchAll");
$protocol = [];
foreach($getdataprotocol as $result)
{
$protocol[] = [['text'=>$result['NameProtocol']]];
}
$protocol[] = [['text'=>$textbotlang['Admin']['backadmin']]];
$keyboardprotocollist = json_encode(['resize_keyboard'=>true,'keyboard'=> $protocol]);
}
//--------------------------------------------------
$stmt = $pdo->prepare("SHOW TABLES LIKE 'product'");
$stmt->execute();
$result = $stmt->fetchAll();
$table_exists = count($result) > 0;
if ($table_exists) {
$product = [];
$stmt = $pdo->prepare("SELECT * FROM product WHERE Location = :text or Location = '/all' ");
$stmt->bindParam(':text', $text , PDO::PARAM_STR);
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$product[] = [$row['name_product']];
}
$list_product = [
'keyboard' => [],
'resize_keyboard' => true,
];
$list_product['keyboard'][] = [
['text' => $textbotlang['Admin']['backadmin']],
];
foreach ($product as $button) {
$list_product['keyboard'][] = [
['text' => $button[0]]
];
}
$json_list_product_list_admin = json_encode($list_product);
}
//--------------------------------------------------
$stmt = $pdo->prepare("SHOW TABLES LIKE 'Discount'");
$stmt->execute();
$result = $stmt->fetchAll();
$table_exists = count($result) > 0;
if ($table_exists) {
$Discount = [];
$stmt = $pdo->prepare("SELECT * FROM Discount");
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$Discount[] = [$row['code']];
}
$list_Discount = [
'keyboard' => [],
'resize_keyboard' => true,
];
$list_Discount['keyboard'][] = [
['text' => $textbotlang['Admin']['backadmin']],
];
foreach ($Discount as $button) {
$list_Discount['keyboard'][] = [
['text' => $button[0]]
];
}
$json_list_Discount_list_admin = json_encode($list_Discount);
}
//--------------------------------------------------
$stmt = $pdo->prepare("SHOW TABLES LIKE 'Inbound'");
$stmt->execute();
$result = $stmt->fetchAll();
$table_exists = count($result) > 0;
if ($table_exists) {
$Inboundkeyboard = [];
$stmt = $pdo->prepare("SELECT * FROM Inbound WHERE location = :Processing_value AND protocol = :text");
$stmt->bindParam(':text', $text , PDO::PARAM_STR);
$stmt->bindParam(':Processing_value', $users['Processing_value'] , PDO::PARAM_STR);
$stmt->execute();
if ($stmt->fetch(PDO::FETCH_ASSOC)) {
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$Inboundkeyboard[] = [$row['NameInbound']];
}
}
$list_Inbound = [
'keyboard' => [],
'resize_keyboard' => true,
];
foreach ($Inboundkeyboard as $button) {
$list_Inbound['keyboard'][] = [
['text' => $button[0]]
];
}
$list_Inbound['keyboard'][] = [
['text' => $textbotlang['Admin']['backadmin']],
];
$json_list_Inbound_list_admin = json_encode($list_Inbound);
}
//--------------------------------------------------
$stmt = $pdo->prepare("SHOW TABLES LIKE 'DiscountSell'");
$stmt->execute();
$result = $stmt->fetchAll();
$table_exists = count($result) > 0;
if ($table_exists) {
$DiscountSell = [];
$stmt = $pdo->prepare("SELECT * FROM DiscountSell");
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$DiscountSell[] = [$row['codeDiscount']];
}
$list_Discountsell = [
'keyboard' => [],
'resize_keyboard' => true,
];
$list_Discountsell['keyboard'][] = [
['text' => $textbotlang['Admin']['backadmin']],
];
foreach ($DiscountSell as $button) {
$list_Discountsell['keyboard'][] = [
['text' => $button[0]]
];
}
$json_list_Discount_list_admin_sell = json_encode($list_Discountsell);
}
$payment = json_encode([
'inline_keyboard' => [
[['text' => "💰 پرداخت و دریافت سرویس", 'callback_data' => "confirmandgetservice"]],
[['text' => "🎁 ثبت کد تخفیف", 'callback_data' => "aptdc"]],
[['text' => $textbotlang['users']['backbtn'] , 'callback_data' => "backuser"]]
]
]);
$paymentom = json_encode([
'inline_keyboard' => [
[['text' => "💰 پرداخت و دریافت سرویس", 'callback_data' => "confirmandgetservice"]],
[['text' => $textbotlang['users']['backbtn'] , 'callback_data' => "backuser"]]
]
]);
$change_product = json_encode([
'keyboard' => [
[['text' => "قیمت"], ['text' => "حجم"], ['text' => "زمان"]],
[['text' => "نام محصول"],['text' => "نوع کاربری"]],
[['text' => "نوع ریست حجم"],['text' => "یادداشت"]],
[['text' => "موقعیت محصول"],['text' => "دسته بندی"]],
[['text' => "🎛 تنظیم اینباند"],['text' => "نمایش برای خرید اول"]],
[['text' => "مخفی کردن پنل"],['text' => "حذف کلی پنل های مخفی"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$keyboardprotocol = json_encode([
'keyboard' => [
[['text' => "vless"],['text' => "vmess"],['text' => "trojan"]],
[['text' => "shadowsocks"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$MethodUsername = json_encode([
'keyboard' => [
[['text' => "نام کاربری + عدد به ترتیب"]],
[['text' => "آیدی عددی + حروف و عدد رندوم"]],
[['text' => "نام کاربری دلخواه"]],
[['text' => "نام کاربری دلخواه + عدد رندوم"]],
[['text' => "متن دلخواه + عدد رندوم"]],
[['text' => "متن دلخواه + عدد ترتیبی"]],
[['text' => "آیدی عددی+عدد ترتیبی"]],
[['text' => "متن دلخواه نماینده + عدد ترتیبی"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$optionMarzban = json_encode([
'keyboard' => [
[['text' => "⚙️ وضعیت قابلیت ها پنل"]],
[['text' => "✍️ نام پنل"],['text' => "❌ حذف پنل"]],
[['text' => "🔐 ویرایش رمز عبور"],['text' => "👤 ویرایش نام کاربری"]],
[['text'=>"🔗 ویرایش آدرس پنل"],['text' => "⚙️ تنظیم پروتکل و اینباند"]],
[['text' => "🔋 روش تمدید سرویس"],['text' =>"💡 روش ساخت نام کاربری"]],
[['text' => "🚨 محدودیت ساخت اکانت"],['text'=> "📍 تغییر گروه کاربری"]],
[['text' => "⏳ زمان سرویس تست"], ['text' => "💾 حجم اکانت تست"]],
[['text' => "⚙️ قیمت حجم سرویس دلخواه"],['text' => "➕ قیمت حجم اضافه"]],
[['text' => "⏳ قیمت زمان اضافه"],['text' => "⏳ قیمت زمان دلخواه"]],
[['text' => "🌍 قیمت تغییر لوکیشن"]],
[['text' => "📍 حداقل حجم دلخواه"],['text' => "📍 حداکثر حجم دلخواه"]],
[['text' => "📍 حداقل زمان دلخواه"],['text' => "📍 حداکثر زمان دلخواه"]],
[['text' => "⚙️ اینباند اکانت غیرفعال"]],
[['text' => "🫣 مخفی کردن پنل برای یک کاربر"]],
[['text' => "❌ حذف کاربر از لیست مخفی شدگان"]],
[['text' => $textbotlang['Admin']['backadmin']],['text' => $textbotlang['Admin']['backmenu']]]
],
'resize_keyboard' => true
]);
$optionibsng = json_encode([
'keyboard' => [
[['text' => "⚙️ وضعیت قابلیت ها پنل"]],
[['text' => "✍️ نام پنل"],['text' => "❌ حذف پنل"]],
[['text' => "🔐 ویرایش رمز عبور"],['text' => "👤 ویرایش نام کاربری"]],
[['text'=>"🔗 ویرایش آدرس پنل"],['text' => '🎛 تنظیم نام گروه']],
[['text' => "🔋 روش تمدید سرویس"],['text' =>"💡 روش ساخت نام کاربری"]],
[['text' => "🚨 محدودیت ساخت اکانت"],['text'=> "📍 تغییر گروه کاربری"]],
[['text' => "⚙️ قیمت حجم سرویس دلخواه"],['text' => "➕ قیمت حجم اضافه"]],
[['text' => "⏳ قیمت زمان اضافه"],['text' => "⏳ قیمت زمان دلخواه"]],
[['text' => "📍 حداقل حجم دلخواه"],['text' => "📍 حداکثر حجم دلخواه"]],
[['text' => "📍 حداقل زمان دلخواه"],['text' => "📍 حداکثر زمان دلخواه"]],
[['text' => "🫣 مخفی کردن پنل برای یک کاربر"]],