forked from r0ld3x/php-telegram-checker-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
955 lines (902 loc) ยท 36.5 KB
/
index.php
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
<?php
$validauth = urlencode ("<b>[ALERT] <i>GIVE ME VALID CARD</i></b>");
$maintain = urlencode ("<b>[ALERT] <u>GATE ON MAINTENANCE</u>
~ USE ANOTHER WORKING GATES</b>");
$noregister = urlencode ("<b>[ALERT] YOU DON'T REGISTERED YOURSELF. PLEASE REGISTER YOURSELF FIRST TO USE ME
โขโข USE /register TO REGISTER ME</b>");
$noreg = urlencode ("<b>[ALERT] YOU DON'T REGISTERED YOURSELF. PLEASE REGISTER YOURSELF FIRST TO USE ME
โขโข USE /register TO REGISTER ME</b>");
$nocredits = urlencode ("<b>๏ธ[ALERT] YOU DON'T HAVE SUFFICIENT CREDITS TO USE ME.
โขโข RECHARGE NOW BY HITTING /buy</b>");
$buyit = urlencode("<b>Use <code>.credits</code> Know Your Available Credits
-> 100 CREDITS + PREMIUM ACCESS - 5$
-> 300 CREDITS + PREMIUM ACCESS - 10$
-> 500 CREDITS + PREMIUM ACCESS - 15$
-> 1000 CREDITS + PREMIUM ACCESS - 25$
>> PING <code>@r0ld3x</code> For Purchasing
Note -โฉ We Only Accept Upi And Crytpo</b>");
$nopre = urlencode("<b>YOU NEED TO BE PREMIUM TO USE THIS COMMAND.
Hit /buy to purchase</b>");
$botToken = "<Bottoken>";
$website = "https://api.telegram.org/bot".$botToken;
$update = file_get_contents('php://input');
echo $update;
$update = json_decode($update, TRUE);
global $website;
$e = print_r($update);
$cchatid2 = $update["callback_query"]["message"]["chat"]["id"];
$cmessage_id2 = $update["callback_query"]["message"]["message_id"];
$cdata2 = $update["callback_query"]["data"];
$username = $update["message"]["from"]["username"];
$chatId = $update["message"]["chat"]["id"];
$chatusername = $update["message"]["chat"]["username"];
$chatname = $update["message"]["chat"]["title"];
$gId = $update["message"]["from"]["id"];
$userId = $update["message"]["from"]["id"];
$firstname = $update["message"]["from"]["first_name"];
$username = $update["message"]["from"]["username"];
$message = $update["message"]["text"];
$new_chat_member = $update["message"]["new_chat_member"];
$newusername = $update["message"]["new_chat_member"]["username"];
$newgId = $update["message"]["new_chat_member"]["id"];
$newfirstname = $update["message"]["new_chat_member"]["first_name"];
$message_id = $update["message"]["message_id"];
$r_id = $update["message"]["reply_to_message"];
$r_userId = $update["message"]["reply_to_message"]["from"]["id"];
$r_firstname = $update["message"]["reply_to_message"]["from"]["first_name"];
$r_username = $update["message"]["reply_to_message"]["from"]["username"];
$r_msg_id = $update["message"]["reply_to_message"]["message_id"];
$r_msg = $update["message"]["reply_to_message"]["text"];
$sender_chat = $update["message"]["sender_chat"]["type"];
if ($cdata2 == "free"){
$islive = 'ON';
$keyboard = ['inline_keyboard' => [[
['text' => 'Premium', 'callback_data' => 'paid'],
['text' => 'Buy', 'callback_data' => 'buy'],
['text' => 'Others', 'callback_data' => 'others'],
['text' => 'Finalize', 'callback_data' => 'end']],
]];
if ($_SERVER['REQUEST_METHOD'] == "POST"){
extract($_POST);
}
elseif ($_SERVER['REQUEST_METHOD'] == "GET"){
extract($_GET);
}
$freecommands = urlencode("<b>
GATE NAME | COMMANDS
Stripe Auth<code>.ch</code>[<i>$islive</i>]
Stripe Auth<code>.str</code>[<i>$islive</i>]
Mass <code>.mass</code>[<i>$islive</i>]
Razorpay <code>.rp</code>[<i>$islive</i>]
</b>");
$free = json_encode($keyboard);
file_get_contents("https://api.telegram.org/bot<Bottoken>/editMessageText?chat_id=$cchatid2&text=$freecommands&message_id=$cmessage_id2&parse_mode=HTML&reply_markup=$free");
}
if ($cdata2 == "paid"){
$islive = 'ON';
$keyboard = [
'inline_keyboard' => [
[
['text' => 'Free', 'callback_data' => 'free'],
['text' => 'Others', 'callback_data' => 'others'],
['text' => 'Buy', 'callback_data' => 'buy'],
// ['text' => 'Buy Now', 'url' => 'https://t.me/r0ld3x'],
['text' => 'Finalize', 'callback_data' => 'end']
]
]];
$freecommands = urlencode("<b>
GATE NAME | COMMANDS
Stripe CHARGE 3$<code>.stc</code>[<i>$islive</i>]
Stripe CHARGE 4$<code>.stp</code>[<i>$islive</i>]
Stripe CHARGE 20$<code>.rape</code>[<i>$islive</i>]
Stripe CHARGE 25$<code>.sto</code>[<i>$islive</i>]
Stripe CHARGE AUTH<code>.sa</code>[<i>$islive</i>]
BRAINTREE <code>.btu</code>[<i>$islive</i>]
SQUARE UP <code>.sq</code>[<i>$islive</i>]
SK Mass <code>.mchk</code>[<i>$isalive</i>]
Auth <code>.aut</code>[<i>$islive</i>]
</b>");
$free = json_encode($keyboard);
file_get_contents("https://api.telegram.org/bot<Bottoken>/editMessageText?chat_id=$cchatid2&text=$freecommands&message_id=$cmessage_id2&parse_mode=HTML&reply_markup=$free");
}
if ($cdata2 == "others"){
$keyboard = [
'inline_keyboard' => [
[
['text' => 'FREE', 'callback_data' => 'free'],
['text' => 'Buy', 'callback_data' => 'buy'],
['text' => 'Premium','callback_data' => 'paid'],
['text' => 'Finalize', 'callback_data' => 'end']
]
]];
$freecommands = urlencode("<b>->> <code>.credits</code> Know Your Available Credits
->> <code>.info</code> Know Your Information
->> <code>.gen</code> Generate Extrap From Bin
->> <code>.key</code> Check Stripe Key
->> <code>.bin</code> Check Bin
->> <code>.git</code> Check Github Username
->> <code>.weather</code> Check Weather Of Your City
->> <code>.dic</code> Check Word Meaning
->> <code>.tr</code> Translate Given Text
->> <code>.rand</code> Random Identity Generator
->> <code>.http</code> Get Http Proxies
->> <code>.socks4</code> Get Socks4 Proxies
->> <code>.socks5</code> Get Socks5 Proxies
Note-โฉ If you get any type of bugs in this bot please inform our team at @r0ld3xrobot</b>");
$free = json_encode($keyboard);
file_get_contents("https://api.telegram.org/bot<Bottoken>/editMessageText?chat_id=$cchatid2&text=$freecommands&message_id=$cmessage_id2&parse_mode=HTML&reply_markup=$free");
}
if ($cdata2 == "buy"){
$keyboard = [
'inline_keyboard' => [
[['text' => 'Buy Now', 'url' => 'https://t.me/r0ld3x'],
['text' => 'Premium', 'callback_data' => 'paid'],
['text' => 'Finalize', 'callback_data' => 'end']]
]];
$freecommands = urlencode("<b>Use <code>.credits</code> Know Your Available Credits
-> 100 CREDITS + PREMIUM ACCESS - 5$
-> 300 CREDITS + PREMIUM ACCESS - 10$
-> 500 CREDITS + PREMIUM ACCESS - 15$
-> 1000 CREDITS + PREMIUM ACCESS - 25$
Note-โฉ We Only Accept [UPI][GIFT CARDS][CRYTPO]</b>");
$free = json_encode($keyboard);
file_get_contents("https://api.telegram.org/bot<Bottoken>/editMessageText?chat_id=$cchatid2&text=$freecommands&message_id=$cmessage_id2&parse_mode=HTML&reply_markup=$free");
}
elseif ($cdata2 == "end"){
$finalize = urlencode("<b>Inline Mode Closed <a href='tg://user?id=$gId'>$firstname</a></b>");
file_get_contents("https://api.telegram.org/bot<Bottoken>/editMessageText?chat_id=$cchatid2&text=$finalize&message_id=$cmessage_id2&parse_mode=HTML");
}
if($sender_chat == 'channel'){
exit();
}
if(empty($username)){
$username = "Set Username Noob";
}elseif(empty($newusername)){
$newusername = "Set Username Noob";
}
if(!empty($r_id)){
$r_msg = $update["message"]["reply_to_message"]["text"];
$message = $update["message"]["text"];
$message = $message ." ".$r_msg;
}
if(!empty($new_chat_member)){
$keyboard = [
'inline_keyboard' => [
[
['text' => 'Free', 'callback_data' => 'free'],
['text' => 'Others', 'callback_data' => 'others'],
['text' => 'Buy', 'callback_data' => 'buy'],
['text' => 'Finalize', 'callback_data' => 'end']
]
]];
$free = json_encode($keyboard);
bot('sendmessage', [
'chat_id' =>$chatId,
'reply_to_message_id'=>$message_id,
'text' =>"<b>
HEY <a href='tg://user?id=$gId'>$newfirstname</a>
WELCOME TO $chatname and chat id of this group is <code>$chatId</code> and your id is <code>$gId</code>
THIS BOT IS MADE WITH โฅ๏ธ BY <code>@r0ld3x</code> </b>",
'parse_mode'=>'HTML',
'reply_markup' => $free,
]);
exit();
}
$premium_id = (array("1792903396","1317173146"));
$premiumgp = (array("-1001320804136","-1001552296979","-1001300027599","-1001298504199","-1001434792768"));
$keyboard = json_encode([
'inline_keyboard' => [
[['text' => "OWNER", 'url' => "https://t.me/r0ld3x"],]
]]);
$keyboard1 = json_encode([
'inline_keyboard' => [
[['text' => "CHANNEL", 'url' => "https://t.me/RoldexVerse"],
['text' => "GROUP", 'url' => "https://t.me/RoldexVerseChats"],]
]]);
// if(!in_array($chatId, $premiumgp)){
// $tch = json_decode(file_get_contents("https://api.telegram.org/bot<Bottoken>/getChatMember?chat_id=@roldexverse&user_id=".$gId))->result->status;
$user = file_get_contents('users.txt');
$members = explode("\n", $user);
if (!in_array($gId, $members)) {
$add_user = file_get_contents('users.txt');
$add_user .= $gId . "\n";
file_put_contents('users.txt', $add_user);
//
}
//
// if($tch != 'member' && $tch != 'creator' && $tch != 'administrator'){
// bot('sendMessage',['chat_id'=>$chatId,'reply_to_message_id'=>$message_id,'text'=>"Sorry <a href='tg://user?id=$gId'>$firstname</a>
//
// You Need To Join My Update Channel To Get Regular Updates
//
// Made With โฅ๏ธ By @r0ld3x
// USE /start AFTER JOIN",
// 'parse_mode'=>'HTML',
// 'reply_markup' => $keyboard1,
// ]);
// exit();
// }
// $tch = json_decode(file_get_contents("https://api.telegram.org/bot<Bottoken>/getChatMember?chat_id=@roldexversechats&user_id=".$gId))->result->status;
// if($tch != 'member' && $tch != 'creator' && $tch != 'administrator'){
// bot('sendMessage',['chat_id'=>$chatId,'reply_to_message_id'=>$message_id,'text'=>"Sorry <a href='tg://user?id=$gId'>$firstname</a>
//
// You Need To Join My Update Channel To Get Regular Updates
//
// Made With โฅ๏ธ By @r0ld3x And @RoldexVerse
//
// USE /start AFTER JOIN",
// 'parse_mode'=>'HTML',
// 'reply_markup' => $keyboard1,
// ]);
// exit();
// }
// }
// $x3 = strtolower(SID());
// $sid = substr($x3, 0, 42);
// $x4 = uniqid();
// $uid = substr($x4, 0, 11);
// $gid = substr($x4, 0, 11);
// $x2 = strtolower(MUID());
// $muid = substr($x2, 0, 42);
// $x = strtolower(GUID());
// $guid = substr($x, 0, 42);
// $tid = mt_rand(11111,99999);
// $tid2 = mt_rand(111111,999999);
if(strpos($message, '!key') === 0 or strpos($message, '/key') === 0 or strpos($message, '.key') === 0){
$keyboard = [
'inline_keyboard' => [[['text' => 'Features', 'callback_data' => 'paid'], ['text' => 'Buy', 'callback_data' => 'buy'], ['text' => 'Buy Now', 'url' => 'https://t.me/r0ld3x'],]]];
$keyboard = json_encode($keyboard);
checkrole($chatId,$message_id,$keyboard,$nopre,$gId);
sendaction($chatId, typing);
$lista = substr($message, 5);
$check = strlen($lista);
$check1 = strlen($lista, 0,7);
$chem = substr($lista, 0,1);
if(empty($lista)){
reply_to($chatId, $message_id,$keyboard,$validauth);
exit();
}elseif($check<25){
reply_to($chatId, $message_id,$keyboard,$validauth);
exit();
}elseif(strpos($check1 != 'sk_live')){
reply_to($chatId, $message_id,$keyboard,$validauth);
exit();
}
$sec = substr($message, 4);
$fii = substr($sec, 0,25);
$newstring = substr($sec, -10);
$sss = reply_to($chatId,$message_id,$keyboard,"<b>Checking Wait...</b>");
$respon = json_decode($sss, TRUE);
$message_id_1 = $respon['result']['message_id'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.stripe.com/v1/tokens');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "card[number]=4543218722787334&card[exp_month]=07&card[exp_year]=2026&card[cvc]=780");
curl_setopt($ch, CURLOPT_USERPWD, $sec. ':' . '');
$headers = array();
$headers[] = 'Content-Type: application/x-www-form-urlencoded';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (strpos($result, 'api_key_expired')){
edit_message($chatId,$message_id_1,$keyboard, "<b>? DEAD KEY</b>%0A<u>KEY:</u> <code>$sec</code>%0A<u>REASON:</u> EXPIRED KEY%0A%0A<b>Bot: @RoldexVerseBot </b>");
}
elseif (strpos($result, 'Invalid API Key provided')){
edit_message($chatId,$message_id_1,$keyboard, "<b>โโโโโโโโโ ใ ROLDEX ใโโโโโโโโโ%0Aโ DEAD KEY โ</b>%0A<u>KEY:</u> <code>$sec</code>%0A<u>REASON:</u> INVALID KEY%0A%0A<b>Bot: @RoldexVerseBot </b>");
}
elseif ((strpos($result, 'testmode_charges_only')) || (strpos($result, 'test_mode_live_card'))){
edit_message($chatId,$message_id_1,$keyboard, "<b>โโโโโโโโโ ใ ROLDEX ใโโโโโโโโโ%0Aโ DEAD KEY โ</b>%0A<u>KEY:</u> <code>$sec</code>%0A<u>REASON:</u> Testmode Charges Only%0A%0A<b>Bot: @RoldexVerseBot </b>");
}else{
edit_message($chatId,$message_id_1,$keyboard, "<b>โโโโโโโโโ ใ ROLDEX ใโโโโโโโโโ%0Aโ
LIVE KEYโ
</b>%0A<u>KEY:</u> <code>${fii}xxxxxxxxxxxxxxxxx${newstring}</code>%0A<u>RESPONSE:</u> SK LIVE!!%0A%0A<b>Bot: @RoldexVerseBot</b>");
// sleep(10);
// edit_message($chatId,$message_id_1,$keyboard,"<b>DELETING SK KEY");
deleteM($chatId,$message_id);
exit();
// sleep(3);
// edit_message($chatId,$message_id_1,$keyboard,"<b>DELETED SK KEY");
}}
foreach (glob("classes/*.php") as $filename)
{
include $filename;
}
// flush();
// reply_to($chatId,$message_id_1,$keyboard,$keyboard, "<b>Sorry! %0AGive Me Valid City Name %0AEX: <code>!weather Bokaro</code></b>");
if(file_exists(getcwd().('/cookie.txt'))){
@unlink('cookie.txt');
}
define('API_KEY',$botToken);
$link = mysqli_connect("localhost", "root", "", "demo");
// Check connection
if($link === false){
sendMessage1("ERROR: Could not connect. " . mysqli_connect_error());
echo '<hr>' . mysqli_connect_error();
}
function bot($method,$datas=[]){
$url = "https://api.telegram.org/bot<Bottoken>/".$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);
}
}
function sendaction($chatId, $action){
bot('sendchataction',[
'chat_id'=>$chatId,
'action'=>$action
]);
}
function joincheck($gId,$chatId,$message_id,$firstname){}
function state($state){
if($state=="Alabama"){ $state="AL";
}else if($state=="alaska"){ $state="AK";
}else if($state=="arizona"){ $state="AR";
}else if($state=="california"){ $state="CA";
}else if($state=="olorado"){ $state="CO";
}else if($state=="connecticut"){ $state="CT";
}else if($state=="delaware"){ $state="DE";
}else if($state=="district of columbia"){ $state="DC";
}else if($state=="florida"){ $state="FL";
}else if($state=="georgia"){ $state="GA";
}else if($state=="hawaii"){ $state="HI";
}else if($state=="idaho"){ $state="ID";
}else if($state=="illinois"){ $state="IL";
}else if($state=="indiana"){ $state="IN";
}else if($state=="iowa"){ $state="IA";
}else if($state=="kansas"){ $state="KS";
}else if($state=="kentucky"){ $state="KY";
}else if($state=="louisiana"){ $state="LA";
}else if($state=="maine"){ $state="ME";
}else if($state=="maryland"){ $state="MD";
}else if($state=="massachusetts"){ $state="MA";
}else if($state=="michigan"){ $state="MI";
}else if($state=="minnesota"){ $state="MN";
}else if($state=="mississippi"){ $state="MS";
}else if($state=="missouri"){ $state="MO";
}else if($state=="montana"){ $state="MT";
}else if($state=="nebraska"){ $state="NE";
}else if($state=="nevada"){ $state="NV";
}else if($state=="new hampshire"){ $state="NH";
}else if($state=="new jersey"){ $state="NJ";
}else if($state=="new mexico"){ $state="NM";
}else if($state=="new york"){ $state="LA";
}else if($state=="north carolina"){ $state="NC";
}else if($state=="north dakota"){ $state="ND";
}else if($state=="Ohio"){ $state="OH";
}else if($state=="oklahoma"){ $state="OK";
}else if($state=="oregon"){ $state="OR";
}else if($state=="pennsylvania"){ $state="PA";
}else if($state=="rhode Island"){ $state="RI";
}else if($state=="south carolina"){ $state="SC";
}else if($state=="south dakota"){ $state="SD";
}else if($state=="tennessee"){ $state="TN";
}else if($state=="texas"){ $state="TX";
}else if($state=="utah"){ $state="UT";
}else if($state=="vermont"){ $state="VT";
}else if($state=="virginia"){ $state="VA";
}else if($state=="washington"){ $state="WA";
}else if($state=="west virginia"){ $state="WV";
}else if($state=="wisconsin"){ $state="WI";
}else if($state=="wyoming"){ $state="WY";
}else if($state=="Kentucky"){ $state="KY";
}else{$state="";}
return $result;}
function reply_to($chatId,$message_id,$keyboard,$message) {
$url = $GLOBALS[website]."/sendMessage?chat_id=".$chatId."&text=".$message."&reply_to_message_id=".$message_id."&parse_mode=HTML&reply_markup=".$keyboard."";
return file_get_contents($url);
}
function sendMessage($chatId,$keyboard,$message) {
$url = $GLOBALS[website]."/sendMessage?chat_id=".$chatId."&text=".$message."&reply_to_message_id=".$message_id."&parse_mode=HTML";
file_get_contents($url);
}
function sendMessage1($message) {
$url = $GLOBALS[website]."/sendMessage?chat_id=-1001532421814&text=".$message."&parse_mode=HTML";
file_get_contents($url);
}
function sendVoice ($chatId,$original) {
$url = $GLOBALS[website]."/sendVoice?chat_id=".$chatId."&voice=".$original."";
file_get_contents($url);
}
function deleteM ($chatId,$message_id) {
$url = $GLOBALS[website]."/deleteMessage?chat_id=".$chatId."&message_id=".$message_id."";
file_get_contents($url);
}
function string_between_two_string($str, $starting_word, $ending_word){
$subtring_start = strpos($str, $starting_word);
$subtring_start += strlen($starting_word);
$size = strpos($str, $ending_word, $subtring_start) - $subtring_start;
return substr($str, $subtring_start, $size);
}
function GetStr($string, $start, $end) {
$str = explode($start, $string);
$str = explode($end, $str[1]);
return $str[0];
}
function g($l, $k, $p){
return explode($p, explode($k, $l)[1])[0];
}
// function gibarray($message){
//
// }
function Capture($str, $starting_word, $ending_word){
$subtring_start = strpos($str, $starting_word);
$subtring_start += strlen($starting_word);
$size = strpos($str, $ending_word, $subtring_start) - $subtring_start;
return substr($str, $subtring_start, $size);
}
function value($str,$find_start,$find_end)
{
$start = @strpos($str,$find_start);
if ($start === false)
{
return "";
}
$length = strlen($find_start);
$end = strpos(substr($str,$start +$length),$find_end);
return trim(substr($str,$start +$length,$end));
}
function clean($string) {
$text = preg_replace("/\r|\n/", " ", $string);
$str1 = preg_replace('/\s+/', ' ', $text);
$str = preg_replace("/[^0-9]/", " ", $str1);
$string = trim($str, " ");
$lista = preg_replace('/\s+/', ' ', $string);
return $lista;
}
function clean2($string) {
$text = preg_replace("/\r|\n/", "", $string);
$str1 = preg_replace('/\s+/', ' ', $text);
$str = preg_replace("/[^0-9]/", " ", $str1);
$string = trim($str, " ");
$lista = preg_replace('/\s+/', ' ', $string);
//
return $result;
}
function clean1($string) {
$str = preg_replace("/[^0-9]/", " ", $string);
return $str;
}
function RemoveSpecialChar($str) {
$res = str_replace(array( '\'', '"',
',' , ';', '<', '>','.' ), '', $str);
return $res;
}
function GUID(){
if (function_exists('com_create_guid') === true){
return trim(com_create_guid(), '{}');
}
return sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
}
function MUID(){
if (function_exists('com_create_muid') === true){
return trim(com_create_muid(), '{}');
}
return sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
}
function SID(){
if (function_exists('com_create_sid') === true){
return trim(com_create_sid(), '{}');
}
return sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
}
// sendMessage($chatId,$keyboard,$rand);
function edit_message($chatId,$message_id,$keyboard,$message) {
$url = $GLOBALS[website]."/editMessageText?chat_id=".$chatId."&text=".$message."&message_id=".$message_id."&parse_mode=HTML";
file_get_contents($url);
}
function editMessage ($chatId, $message,$message_id){
global $botToken;
$url = "https://api.telegram.org/bot".$botToken."/editMessageText?chat_id=".$chatId."&message_id=".$message_id."&text=โขโขMASS CHECKER%0A".$message."%0Aโขโขโข BOT BY: @RoldexVerse&parse_mode=HTML";
$result = file_get_contents($url);
echo $result.'<hr>';
}
function multiexplode($delimiters, $string){
$one = str_replace($delimiters, $delimiters[0], $string);
$two = explode($delimiters[0], $one);
return $two;
}
function inStr($string, $start, $end, $value) {
$str = explode($start, $string);
$str = explode($end, $str[$value]);
return $str[0];
}
function mod($dividendo,$divisor) { return round($dividendo - (floor($dividendo/$divisor)*$divisor));
}
function gibarray($message){
// $cuted = substr($message, 6);
return explode("\n", $message);
}
function getFlags($code){
$code = strtoupper($code);
if($code == 'AD') return '๐ฆ๐ฉ';
if($code == 'AE') return '๐ฆ๐ช';
if($code == 'AF') return '๐ฆ๐ซ';
if($code == 'AG') return '๐ฆ๐ฌ';
if($code == 'AI') return '๐ฆ๐ฎ';
if($code == 'AL') return '๐ฆ๐ฑ';
if($code == 'AM') return '๐ฆ๐ฒ';
if($code == 'AO') return '๐ฆ๐ด';
if($code == 'AQ') return '๐ฆ๐ถ';
if($code == 'AR') return '๐ฆ๐ท';
if($code == 'AS') return '๐ฆ๐ธ';
if($code == 'AT') return '๐ฆ๐น';
if($code == 'AU') return '๐ฆ๐บ';
if($code == 'AW') return '๐ฆ๐ผ';
if($code == 'AX') return '๐ฆ๐ฝ';
if($code == 'AZ') return '๐ฆ๐ฟ';
if($code == 'BA') return '๐ง๐ฆ';
if($code == 'BB') return '๐ง๐ง';
if($code == 'BD') return '๐ง๐ฉ';
if($code == 'BE') return '๐ง๐ช';
if($code == 'BF') return '๐ง๐ซ';
if($code == 'BG') return '๐ง๐ฌ';
if($code == 'BH') return '๐ง๐ญ';
if($code == 'BI') return '๐ง๐ฎ';
if($code == 'BJ') return '๐ง๐ฏ';
if($code == 'BL') return '๐ง๐ฑ';
if($code == 'BM') return '๐ง๐ฒ';
if($code == 'BN') return '๐ง๐ณ';
if($code == 'BO') return '๐ง๐ด';
if($code == 'BQ') return '๐ง๐ถ';
if($code == 'BR') return '๐ง๐ท';
if($code == 'BS') return '๐ง๐ธ';
if($code == 'BT') return '๐ง๐น';
if($code == 'BV') return '๐ง๐ป';
if($code == 'BW') return '๐ง๐ผ';
if($code == 'BY') return '๐ง๐พ';
if($code == 'BZ') return '๐ง๐ฟ';
if($code == 'CA') return '๐จ๐ฆ';
if($code == 'CC') return '๐จ๐จ';
if($code == 'CD') return '๐จ๐ฉ';
if($code == 'CF') return '๐จ๐ซ';
if($code == 'CG') return '๐จ๐ฌ';
if($code == 'CH') return '๐จ๐ญ';
if($code == 'CI') return '๐จ๐ฎ';
if($code == 'CK') return '๐จ๐ฐ';
if($code == 'CL') return '๐จ๐ฑ';
if($code == 'CM') return '๐จ๐ฒ';
if($code == 'CN') return '๐จ๐ณ';
if($code == 'CO') return '๐จ๐ด';
if($code == 'CR') return '๐จ๐ท';
if($code == 'CU') return '๐จ๐บ';
if($code == 'CV') return '๐จ๐ป';
if($code == 'CW') return '๐จ๐ผ';
if($code == 'CX') return '๐จ๐ฝ';
if($code == 'CY') return '๐จ๐พ';
if($code == 'CZ') return '๐จ๐ฟ';
if($code == 'DE') return '๐ฉ๐ช';
if($code == 'DJ') return '๐ฉ๐ฏ';
if($code == 'DK') return '๐ฉ๐ฐ';
if($code == 'DM') return '๐ฉ๐ฒ';
if($code == 'DO') return '๐ฉ๐ด';
if($code == 'DZ') return '๐ฉ๐ฟ';
if($code == 'EC') return '๐ช๐จ';
if($code == 'EE') return '๐ช๐ช';
if($code == 'EG') return '๐ช๐ฌ';
if($code == 'EH') return '๐ช๐ญ';
if($code == 'ER') return '๐ช๐ท';
if($code == 'ES') return '๐ช๐ธ';
if($code == 'ET') return '๐ช๐น';
if($code == 'FI') return '๐ซ๐ฎ';
if($code == 'FJ') return '๐ซ๐ฏ';
if($code == 'FK') return '๐ซ๐ฐ';
if($code == 'FM') return '๐ซ๐ฒ';
if($code == 'FO') return '๐ซ๐ด';
if($code == 'FR') return '๐ซ๐ท';
if($code == 'GA') return '๐ฌ๐ฆ';
if($code == 'GB') return '๐ฌ๐ง';
if($code == 'GD') return '๐ฌ๐ฉ';
if($code == 'GE') return '๐ฌ๐ช';
if($code == 'GF') return '๐ฌ๐ซ';
if($code == 'GG') return '๐ฌ๐ฌ';
if($code == 'GH') return '๐ฌ๐ญ';
if($code == 'GI') return '๐ฌ๐ฎ';
if($code == 'GL') return '๐ฌ๐ฑ';
if($code == 'GM') return '๐ฌ๐ฒ';
if($code == 'GN') return '๐ฌ๐ณ';
if($code == 'GP') return '๐ฌ๐ต';
if($code == 'GQ') return '๐ฌ๐ถ';
if($code == 'GR') return '๐ฌ๐ท';
if($code == 'GS') return '๐ฌ๐ธ';
if($code == 'GT') return '๐ฌ๐น';
if($code == 'GU') return '๐ฌ๐บ';
if($code == 'GW') return '๐ฌ๐ผ';
if($code == 'GY') return '๐ฌ๐พ';
if($code == 'HK') return '๐ญ๐ฐ';
if($code == 'HM') return '๐ญ๐ฒ';
if($code == 'HN') return '๐ญ๐ณ';
if($code == 'HR') return '๐ญ๐ท';
if($code == 'HT') return '๐ญ๐น';
if($code == 'HU') return '๐ญ๐บ';
if($code == 'ID') return '๐ฎ๐ฉ';
if($code == 'IE') return '๐ฎ๐ช';
if($code == 'IL') return '๐ฎ๐ฑ';
if($code == 'IM') return '๐ฎ๐ฒ';
if($code == 'IN') return '๐ฎ๐ณ';
if($code == 'IO') return '๐ฎ๐ด';
if($code == 'IQ') return '๐ฎ๐ถ';
if($code == 'IR') return '๐ฎ๐ท';
if($code == 'IS') return '๐ฎ๐ธ';
if($code == 'IT') return '๐ฎ๐น';
if($code == 'JE') return '๐ฏ๐ช';
if($code == 'JM') return '๐ฏ๐ฒ';
if($code == 'JO') return '๐ฏ๐ด';
if($code == 'JP') return '๐ฏ๐ต';
if($code == 'KE') return '๐ฐ๐ช';
if($code == 'KG') return '๐ฐ๐ฌ';
if($code == 'KH') return '๐ฐ๐ญ';
if($code == 'KI') return '๐ฐ๐ฎ';
if($code == 'KM') return '๐ฐ๐ฒ';
if($code == 'KN') return '๐ฐ๐ณ';
if($code == 'KP') return '๐ฐ๐ต';
if($code == 'KR') return '๐ฐ๐ท';
if($code == 'KW') return '๐ฐ๐ผ';
if($code == 'KY') return '๐ฐ๐พ';
if($code == 'KZ') return '๐ฐ๐ฟ';
if($code == 'LA') return '๐ฑ๐ฆ';
if($code == 'LB') return '๐ฑ๐ง';
if($code == 'LC') return '๐ฑ๐จ';
if($code == 'LI') return '๐ฑ๐ฎ';
if($code == 'LK') return '๐ฑ๐ฐ';
if($code == 'LR') return '๐ฑ๐ท';
if($code == 'LS') return '๐ฑ๐ธ';
if($code == 'LT') return '๐ฑ๐น';
if($code == 'LU') return '๐ฑ๐บ';
if($code == 'LV') return '๐ฑ๐ป';
if($code == 'LY') return '๐ฑ๐พ';
if($code == 'MA') return '๐ฒ๐ฆ';
if($code == 'MC') return '๐ฒ๐จ';
if($code == 'MD') return '๐ฒ๐ฉ';
if($code == 'ME') return '๐ฒ๐ช';
if($code == 'MF') return '๐ฒ๐ซ';
if($code == 'MG') return '๐ฒ๐ฌ';
if($code == 'MH') return '๐ฒ๐ญ';
if($code == 'MK') return '๐ฒ๐ฐ';
if($code == 'ML') return '๐ฒ๐ฑ';
if($code == 'MM') return '๐ฒ๐ฒ';
if($code == 'MN') return '๐ฒ๐ณ';
if($code == 'MO') return '๐ฒ๐ด';
if($code == 'MP') return '๐ฒ๐ต';
if($code == 'MQ') return '๐ฒ๐ถ';
if($code == 'MR') return '๐ฒ๐ท';
if($code == 'MS') return '๐ฒ๐ธ';
if($code == 'MT') return '๐ฒ๐น';
if($code == 'MU') return '๐ฒ๐บ';
if($code == 'MV') return '๐ฒ๐ป';
if($code == 'MW') return '๐ฒ๐ผ';
if($code == 'MX') return '๐ฒ๐ฝ';
if($code == 'MY') return '๐ฒ๐พ';
if($code == 'MZ') return '๐ฒ๐ฟ';
if($code == 'NA') return '๐ณ๐ฆ';
if($code == 'NC') return '๐ณ๐จ';
if($code == 'NE') return '๐ณ๐ช';
if($code == 'NF') return '๐ณ๐ซ';
if($code == 'NG') return '๐ณ๐ฌ';
if($code == 'NI') return '๐ณ๐ฎ';
if($code == 'NL') return '๐ณ๐ฑ';
if($code == 'NO') return '๐ณ๐ด';
if($code == 'NP') return '๐ณ๐ต';
if($code == 'NR') return '๐ณ๐ท';
if($code == 'NU') return '๐ณ๐บ';
if($code == 'NZ') return '๐ณ๐ฟ';
if($code == 'OM') return '๐ด๐ฒ';
if($code == 'PA') return '๐ต๐ฆ';
if($code == 'PE') return '๐ต๐ช';
if($code == 'PF') return '๐ต๐ซ';
if($code == 'PG') return '๐ต๐ฌ';
if($code == 'PH') return '๐ต๐ญ';
if($code == 'PK') return '๐ต๐ฐ';
if($code == 'PL') return '๐ต๐ฑ';
if($code == 'PM') return '๐ต๐ฒ';
if($code == 'PN') return '๐ต๐ณ';
if($code == 'PR') return '๐ต๐ท';
if($code == 'PS') return '๐ต๐ธ';
if($code == 'PT') return '๐ต๐น';
if($code == 'PW') return '๐ต๐ผ';
if($code == 'PY') return '๐ต๐พ';
if($code == 'QA') return '๐ถ๐ฆ';
if($code == 'RE') return '๐ท๐ช';
if($code == 'RO') return '๐ท๐ด';
if($code == 'RS') return '๐ท๐ธ';
if($code == 'RU') return '๐ท๐บ';
if($code == 'RW') return '๐ท๐ผ';
if($code == 'SA') return '๐ธ๐ฆ';
if($code == 'SB') return '๐ธ๐ง';
if($code == 'SC') return '๐ธ๐จ';
if($code == 'SD') return '๐ธ๐ฉ';
if($code == 'SE') return '๐ธ๐ช';
if($code == 'SG') return '๐ธ๐ฌ';
if($code == 'SH') return '๐ธ๐ญ';
if($code == 'SI') return '๐ธ๐ฎ';
if($code == 'SJ') return '๐ธ๐ฏ';
if($code == 'SK') return '๐ธ๐ฐ';
if($code == 'SL') return '๐ธ๐ฑ';
if($code == 'SM') return '๐ธ๐ฒ';
if($code == 'SN') return '๐ธ๐ณ';
if($code == 'SO') return '๐ธ๐ด';
if($code == 'SR') return '๐ธ๐ท';
if($code == 'SS') return '๐ธ๐ธ';
if($code == 'ST') return '๐ธ๐น';
if($code == 'SV') return '๐ธ๐ป';
if($code == 'SX') return '๐ธ๐ฝ';
if($code == 'SY') return '๐ธ๐พ';
if($code == 'SZ') return '๐ธ๐ฟ';
if($code == 'TC') return '๐น๐จ';
if($code == 'TD') return '๐น๐ฉ';
if($code == 'TF') return '๐น๐ซ';
if($code == 'TG') return '๐น๐ฌ';
if($code == 'TH') return '๐น๐ญ';
if($code == 'TJ') return '๐น๐ฏ';
if($code == 'TK') return '๐น๐ฐ';
if($code == 'TL') return '๐น๐ฑ';
if($code == 'TM') return '๐น๐ฒ';
if($code == 'TN') return '๐น๐ณ';
if($code == 'TO') return '๐น๐ด';
if($code == 'TR') return '๐น๐ท';
if($code == 'TT') return '๐น๐น';
if($code == 'TV') return '๐น๐ป';
if($code == 'TW') return '๐น๐ผ';
if($code == 'TZ') return '๐น๐ฟ';
if($code == 'UA') return '๐บ๐ฆ';
if($code == 'UG') return '๐บ๐ฌ';
if($code == 'UM') return '๐บ๐ฒ';
if($code == 'US') return '๐บ๐ธ';
if($code == 'UY') return '๐บ๐พ';
if($code == 'UZ') return '๐บ๐ฟ';
if($code == 'VA') return '๐ป๐ฆ';
if($code == 'VC') return '๐ป๐จ';
if($code == 'VE') return '๐ป๐ช';
if($code == 'VG') return '๐ป๐ฌ';
if($code == 'VI') return '๐ป๐ฎ';
if($code == 'VN') return '๐ป๐ณ';
if($code == 'VU') return '๐ป๐บ';
if($code == 'WF') return '๐ผ๐ซ';
if($code == 'WS') return '๐ผ๐ธ';
if($code == 'XK') return '๐ฝ๐ฐ';
if($code == 'YE') return '๐พ๐ช';
if($code == 'YT') return '๐พ๐น';
if($code == 'ZA') return '๐ฟ๐ฆ';
if($code == 'ZM') return '๐ฟ๐ฒ';
return '๐ณ';
}
function ccn($lista){
$members = explode("\n", $user);
if (!in_array($lista, $members)) {
$add_user = file_get_contents('temp/ccn.txt');
$add_user .= $lista . "\n";
file_put_contents('temp/ccn.txt', $add_user);
}
}
function cvv($lista){
$user = file_get_contents('temp/cvv.txt');
$members = explode("\n", $user);
if (!in_array($lista, $members)) {
$add_user = file_get_contents('temp/cvv.txt');
$add_user .= $lista . "\n";
file_put_contents('temp/cvv.txt', $add_user);
}
}
function dec($lista){
$user = file_get_contents('temp/dec.txt');
$members = explode("\n", $user);
if (!in_array($lista, $members)) {
$add_user = file_get_contents('temp/dec.txt');
$add_user .= $lista . "\n";
file_put_contents('temp/dec.txt', $add_user);
}
}
function rest($lista){
$cc = multiexplode(array(":", "/", " ", "|", ""), $lista)[0];
$mes = multiexplode(array(":", "/", " ", "|", ""), $lista)[1];
$ano = multiexplode(array(":", "/", " ", "|", ""), $lista)[2];
$cvv = multiexplode(array(":", "/", " ", "|", ""), $lista)[3];
$lista = ''.$cc.'|'.$mes.'|'.$ano.'|'.$cvv.'';
$user = file_get_contents('temp/dec.txt');
$members = explode("\n", $user);
if (!in_array($lista, $members)) {
$add_user = file_get_contents('temp/rest.txt');
$add_user .= $lista . "\n";
file_put_contents('temp/rest.txt', $add_user);
}
}
function time1($val){
$endtime = microtime(true);
$time = $endtime - $val;
$time = substr($time, 0, 4);
return $time;
}
function bannedbin($bin){
$bugbin = file_get_contents('banned.txt');
$exploded = explode("\n", $bugbin);
if (in_array($bin, $exploded)) {
return true;
}
}
function addedgp($bin){
$bugbin = file_get_contents('addedgp.txt');
$exploded = explode("\n", $bugbin);
if (in_array($bin, $exploded)) {
return true;
}else{
return false;
}
}
function checkrole($chatId,$message_id,$keyboard,$nopre,$gId){
$link = mysqli_connect("localhost", "root", "", "demo");
$sql = "SELECT credits FROM persons WHERE userid='$gId'";
$result = mysqli_query($link, $sql);
$json_array = [];
while ($row = mysqli_fetch_assoc($result)) {
$json_array[] = $row;
}
$final2 = json_encode($json_array);
$credits = trim(strip_tags(getStr($final2, '"credits":"','"')));
mysqli_close($link);
$link = mysqli_connect("localhost", "root", "", "demo");
$sql = "SELECT role FROM persons WHERE userid='$gId'";
$result20 = mysqli_query($link, $sql);
$json_array = [];
while ($row = mysqli_fetch_assoc($result20)) {
$json_array[] = $row;
}
$final201 = json_encode($json_array);
$role = trim(strip_tags(getStr($final201, '"role":"','"')));
mysqli_close($link);
if($role == 'MEMBER' and $credits < 5){
$link = mysqli_connect("localhost", "root", "", "demo");
$sql = "UPDATE persons SET role = 'USER' WHERE persons.userid='$gId'";
$result = mysqli_query($link, $sql);
$json_array = [];
while ($row = mysqli_fetch_assoc($result)) {
$json_array[] = $row;
}
$final = json_encode($json_array);
$result = "<i>SORRY TO SAY THAT</i>\n <b> YOU HAVE BEEN DEMOTED TO FREE USER BECAUSE YOU DONT HAVE CREDITS NOW \n YOU CAN BUY CREDITS NOW BY HITTING /buy </b>";
reply_to($chatId,$message_id,$keyboard,$result);
}elseif(empty($credits)){
$link = mysqli_connect("localhost", "root", "", "demo");
$sql = "INSERT INTO persons (userid, role, username, credits) VALUES ('$userId', 'USER', '$username', '01')";
$result = "<i>User Created Successfully</i>";
reply_to($chatId,$message_id,$keyboard,$result);
}
// $premiumgp = (array("-1001320804136","-1001552296979","-1001300027599","-1001298504199","-1001434792768","-1001478277738","-1001350709511","-1001348664765","-1001325488699"));
$che = bannedbin($bin);
$user = file_get_contents('users.txt');
$members = explode("\n", $user);
if (!in_array($gId, $members)) {
$add_user = file_get_contents('users.txt');
$add_user .= $gId . "\n";
file_put_contents('users.txt', $add_user);
//
}
$freeuser = urlencode("<b>HEY You dont have permission to use me here
<i> take premium access to use here</i></b>");
$freeuser1 = urlencode("<b>HEY You dont have permission to use me here
<i>take group access from <code>@r0ld3x</code> to use here</i></b>");
$link = mysqli_connect("localhost", "root", "", "demo");
$sql = "SELECT role FROM persons WHERE userid='$gId'";
$result20 = mysqli_query($link, $sql);
$json_array = [];
while ($row = mysqli_fetch_assoc($result20)){
$json_array[] = $row;}
$final201 = json_encode($json_array);
$role = trim(strip_tags(getStr($final201, '"role":"','"')));
mysqli_close($link);
$noregister = urlencode ("<b>[ALERT] YOU DON'T REGISTERED YOURSELF. PLEASE REGISTER YOURSELF FIRST TO USE ME
โขโข USE /register TO REGISTER ME</b>");
if($chatId == $gId and $role == 'USER'){
reply_to($chatId,$message_id,$keyboard,$freeuser);
exit();
}elseif($chatId != $gId and $che == false){
reply_to($chatId,$message_id,$keyboard,$freeuser1);
exit();
}elseif(empty($role)){
reply_to($chatId,$message_id,$keyboard,$noregister);
exit();
}}
// flush();
ob_flush();
?>