0tuandz commited on
Commit
b0daa4c
·
verified ·
1 Parent(s): 905a848

Add others/1749469415080_index.php

Browse files
Files changed (1) hide show
  1. others/1749469415080_index.php +156 -0
others/1749469415080_index.php ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ #==========================BOT BY @LATAMBOTS AND @SOFIAVCHANEL=================================#
3
+ $botToken = "<botToken XD>";
4
+ $website = "https://api.telegram.org/bot".$botToken;
5
+ $update = file_get_contents('php://input');
6
+ echo $update;
7
+ $update = json_decode($update, TRUE);
8
+ global $website;
9
+ $e = print_r($update);
10
+ $cchatid2 = $update["callback_query"]["message"]["chat"]["id"];
11
+ $cmessage_id2 = $update["callback_query"]["message"]["message_id"];
12
+ $cdata2 = $update["callback_query"]["data"];
13
+ $username = $update["message"]["from"]["username"];
14
+ $chatId = $update["message"]["chat"]["id"];
15
+ $chatusername = $update["message"]["chat"]["username"];
16
+ $chatname = $update["message"]["chat"]["title"];
17
+ $gId = $update["message"]["from"]["id"];
18
+ $userId = $update["message"]["from"]["id"];
19
+ $firstname = $update["message"]["from"]["first_name"];
20
+ $username = $update["message"]["from"]["username"];
21
+ $message = $update["message"]["text"];
22
+ $new_chat_member = $update["message"]["new_chat_member"];
23
+ $newusername = $update["message"]["new_chat_member"]["username"];
24
+ $newgId = $update["message"]["new_chat_member"]["id"];
25
+ $newfirstname = $update["message"]["new_chat_member"]["first_name"];
26
+ $message_id = $update["message"]["message_id"];
27
+ $r_id = $update["message"]["reply_to_message"];
28
+ $r_userId = $update["message"]["reply_to_message"]["from"]["id"];
29
+ $r_firstname = $update["message"]["reply_to_message"]["from"]["first_name"];
30
+ $r_username = $update["message"]["reply_to_message"]["from"]["username"];
31
+ $r_msg_id = $update["message"]["reply_to_message"]["message_id"];
32
+ $r_msg = $update["message"]["reply_to_message"]["text"];
33
+ $sender_chat = $update["message"]["sender_chat"]["type"];
34
+ $bot_name = "MI BOT USERNAME";
35
+ $owner = "OWNER_NAME";
36
+ $keyboard = json_encode([
37
+ 'inline_keyboard' => [
38
+ [['text' => "Canal🤑", 'url' => "https://t.me/Latambots"],],
39
+ [['text' => "Repositorio🥶", 'url' => "https://github.com/Juahph4"],]
40
+ ]]);
41
+
42
+
43
+ if ($cdata2 == "gates"){
44
+
45
+ $keyboard = [
46
+ 'inline_keyboard' => [
47
+ [
48
+ ['text' => 'Herramientas🛠', 'callback_data' => 'her']
49
+ ],
50
+ [
51
+ ['text' => 'Exit 🔄️', 'callback_data' => 'exit']
52
+ ],
53
+ ]
54
+ ];
55
+ $freecmands = urlencode("<b>$bot_name
56
+
57
+ Stripe [OFF❌] = /chk
58
+ </b>");
59
+ $free = json_encode($keyboard);
60
+ file_get_contents("https://api.telegram.org/bot$botToken/editMessageText?chat_id=$cchatid2&text=$freecmands&message_id=$cmessage_id2&parse_mode=HTML&reply_markup=$free");
61
+
62
+ }
63
+
64
+
65
+
66
+
67
+ if ($cdata2 == "her"){
68
+
69
+ $keyboard = [
70
+ 'inline_keyboard' => [
71
+ [
72
+ ['text' => 'Gates✅', 'callback_data' => 'gates']
73
+ ],
74
+ [
75
+ ['text' => 'Exit 🔄️', 'callback_data' => 'exit']
76
+ ],
77
+ ]
78
+ ];
79
+ $freecmands = urlencode("<b>$bot_name
80
+
81
+ BIN LOCKUP [ON✅]= /bin
82
+
83
+
84
+ RANDOM DATA [ON✅]= /rand
85
+ </b>");
86
+ $free = json_encode($keyboard);
87
+ file_get_contents("https://api.telegram.org/bot$botToken/editMessageText?chat_id=$cchatid2&text=$freecmands&message_id=$cmessage_id2&parse_mode=HTML&reply_markup=$free");
88
+
89
+ }
90
+
91
+
92
+ if ($cdata2 == "exit"){
93
+
94
+ $keyboard = [
95
+ 'inline_keyboard' => [
96
+ [
97
+ ['text' => 'Close On✅', 'callback_data' => 'Close']
98
+ ],
99
+ ]
100
+ ];
101
+ $freecmands = urlencode("<b>$bot_name
102
+
103
+ Ha Finalizado El Comando
104
+ </b>");
105
+ $free = json_encode($keyboard);
106
+ file_get_contents("https://api.telegram.org/bot$botToken/editMessageText?chat_id=$cchatid2&text=$freecmands&message_id=$cmessage_id2&parse_mode=HTML&reply_markup=$free");
107
+
108
+ }
109
+
110
+
111
+ if ($cdata2 == "Close"){
112
+
113
+ }
114
+
115
+
116
+
117
+
118
+ if(strpos($message, "/start")===0){
119
+ reply_to($chatId,$message_id,$keyboard,"<b>😁Bienvenido A $bot_name%0A%0A🌏Usa /cmds Para Ver Mis Comandos%0A%0A🤑Bot By $owner</b>");
120
+ }
121
+
122
+
123
+ if(strpos($message, "/cmds") ===0){
124
+ $keyboard2 = json_encode([
125
+ 'inline_keyboard' => [
126
+ [['text' => "Herramientas🛠", 'callback_data' => "her"],['text' => "Gates✅", 'callback_data' => "gates"]],
127
+ ]]);
128
+ reply_to($chatId,$message_id,$keyboard2,"<b>$bot_name%0AElije El Tipo De Comando🥶</b>");
129
+ }
130
+
131
+
132
+ function reply_to($chatId,$message_id,$keyboard,$message) {
133
+ $url = $GLOBALS[website]."/sendMessage?chat_id=".$chatId."&text=".$message."&reply_to_message_id=".$message_id."&parse_mode=HTML&reply_markup=".$keyboard."";
134
+ return file_get_contents($url);
135
+ }
136
+
137
+ function deleteM($chatId,$message_id){
138
+
139
+ $url = $GLOBALS[website]."/deleteMessage?chat_id=".$chatId."&message_id=".$message_id."";
140
+ file_get_contents($url);
141
+ }
142
+
143
+
144
+ function sendMessage($chatId,$message,$message_id) {
145
+
146
+ $url = $GLOBALS[website]."/sendMessage?chat_id=".$chatId."&text=".$message."&reply_to_message_id=".$message_id."&parse_mode=HTML";
147
+ file_get_contents($url);
148
+
149
+ }
150
+
151
+
152
+ foreach (glob("tools/*.php") as $filename)
153
+ {
154
+ include $filename;
155
+ }
156
+ ?>