-
Notifications
You must be signed in to change notification settings - Fork 1
/
telebot.php
41 lines (35 loc) · 1.25 KB
/
telebot.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
<?php
/*===[PHP Setup]==============================================*/
error_reporting(0);
ini_set('display_errors', 0);
/*===[Security Setup]=========================================*/
include 'config.php';
if ($_GET['referrer'] != "akahiko") {
$i = rand(0,sizeof($red_link));
header("location: $red_link[$i]");
exit();
}
/*===[Variable Setup]=========================================*/
$telebot = $_GET['telebot'];
/*===[CC Info Validation]=====================================*/
if($telebot == ""){
exit();
}
$keyboard = array(
"inline_keyboard" => array(
array(
array("text" => "Visit akahiko Checker", "url" => "https://akahiko.me/")
),
array(
array("text" => "Contact akahiko", "url" => "https://t.me/scssid")
)
)
);
$keyboard = json_encode($keyboard, true);
$message = '<b>'.$bot_name.'</b>%0A%0ATest Complete, You may now continue checking cards with our checker.';
phccoderSendMessage($message,$keyboard);
/*===[PHP Functions]==========================================*/
function phccoderSendMessage($message, $keyboard){
$url = $GLOBALS['token_url']."/sendMessage?chat_id=".$GLOBALS['telebot']."&text=".$message."&parse_mode=HTML&reply_markup=".$keyboard;
file_get_contents($url);
}