-
Notifications
You must be signed in to change notification settings - Fork 527
/
main.php
136 lines (105 loc) · 3.71 KB
/
main.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
<?php
include __DIR__."/config/config.php";
include __DIR__."/config/variables.php";
include __DIR__."/functions/bot.php";
include __DIR__."/functions/functions.php";
include __DIR__."/functions/db.php";
date_default_timezone_set($config['timeZone']);
////Modules
include __DIR__."/modules/admin.php";
include __DIR__."/modules/skcheck.php";
include __DIR__."/modules/binlookup.php";
include __DIR__."/modules/iban.php";
include __DIR__."/modules/stats.php";
include __DIR__."/modules/me.php";
include __DIR__."/modules/apikey.php";
include __DIR__."/modules/checker/ss.php";
include __DIR__."/modules/checker/schk.php";
include __DIR__."/modules/checker/sm.php";
//////////////===[START]===//////////////
if(strpos($message, "/start") === 0){
if(!isBanned($userId) && !isMuted($userId)){
if($userId == $config['adminID']){
$messagesec = "<b>Type /admin to know admin commands</b>";
}
addUser($userId);
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"<b>Hello @$username,
Type /cmds to know all my commands!</b>
$messagesec",
'parse_mode'=>'html',
'reply_to_message_id'=> $message_id,
'reply_markup'=>json_encode(['inline_keyboard' => [
[
['text' => "💠 Created By 💠", 'url' => "t.me/iamNVN"]
],
[
['text' => "💎 Source Code 💎", 'url' => "GitHub.com/iam-NVN/SDMN_CheckerBot"]
],
], 'resize_keyboard' => true])
]);
}
}
//////////////===[CMDS]===//////////////
if(strpos($message, "/cmds") === 0 || strpos($message, "!cmds") === 0){
if(!isBanned($userId) && !isMuted($userId)){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"<b>Which commands would you like to check?</b>",
'parse_mode'=>'html',
'reply_to_message_id'=> $message_id,
'reply_markup'=>json_encode(['inline_keyboard'=>[
[['text'=>"💳 CC Checker Gates",'callback_data'=>"checkergates"]],[['text'=>"🛠 Other Commands",'callback_data'=>"othercmds"]],
],'resize_keyboard'=>true])
]);
}
}
if($data == "back"){
bot('editMessageText',[
'chat_id'=>$callbackchatid,
'message_id'=>$callbackmessageid,
'text'=>"<b>Which commands would you like to check?</b>",
'parse_mode'=>'html',
'reply_markup'=>json_encode(['inline_keyboard'=>[
[['text'=>"💳 CC Checker Gates",'callback_data'=>"checkergates"]],[['text'=>"🛠 Other Commands",'callback_data'=>"othercmds"]],
],'resize_keyboard'=>true])
]);
}
if($data == "checkergates"){
bot('editMessageText',[
'chat_id'=>$callbackchatid,
'message_id'=>$callbackmessageid,
'text'=>"<b>━━CC Checker Gates━━</b>
<b>/ss | !ss - Stripe [Auth]</b>
<b>/sm | !sm - Stripe [Merchant]</b>
<b>/schk | !schk - User Stripe Merchant [Needs SK]</b>
<b>/apikey sk_live_xxx - Add SK Key for /schk gate</b>
<b>/myapikey | !myapikey - View the added SK Key for /schk gate</b>
<b>ϟ Join <a href='t.me/pyLeads'>pyLeads</a></b>",
'parse_mode'=>'html',
'disable_web_page_preview'=>true,
'reply_markup'=>json_encode(['inline_keyboard'=>[
[['text'=>"Return",'callback_data'=>"back"]]
],'resize_keyboard'=>true])
]);
}
if($data == "othercmds"){
bot('editMessageText',[
'chat_id'=>$callbackchatid,
'message_id'=>$callbackmessageid,
'text'=>"<b>━━Other Commands━━</b>
<b>/me | !me</b> - Your Info
<b>/stats | !stats</b> - Checker Stats
<b>/key | !key</b> - SK Key Checker
<b>/bin | !bin</b> - Bin Lookup
<b>/iban | !iban</b> - IBAN Checker
<b>ϟ Join <a href='t.me/pyLeads'>pyLeads</a></b>",
'parse_mode'=>'html',
'disable_web_page_preview'=>true,
'reply_markup'=>json_encode(['inline_keyboard'=>[
[['text'=>"Return",'callback_data'=>"back"]]
],'resize_keyboard'=>true])
]);
}
?>