L💜
Size: a a a
L💜
A
A
require 'phar.php';
$api_id = ; // Get your own at my.telegram.org
$api_hash = ''; // Get your own at my.telegram.org
register_shutdown_function(function() {
\danog\MadelineProto\Logger::log(['Serializing instances...']);
foreach (\danog\MadelineProto\Serialization::$instances as $madeline) {
$madeline->serialize();
}
\danog\MadelineProto\Logger::log(['Restarting script...']);
$a = fsockopen((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? 'tls' : 'tcp').'://'.$_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT']);
fwrite($a, $_SERVER['REQUEST_METHOD'].' '.$_SERVER['REQUEST_URI'].' '.$_SERVER['SERVER_PROTOCOL']."\r\n"."Host: ".$_SERVER['SERVER_NAME']."\r\n\r\n");
});
$MadelineProto = new \danog\MadelineProto\API(['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash], 'connection_settings' => ['all' => ['protocol' => 'https']], 'logger' => ['logger' => 2, 'logger_param' => __DIR__.'/Madeline.log']]);
$MadelineProto->session = 'session.madeline';
// your bot
DG
DG
DG
DG
DG
A
DG
A
DG
require 'phar.php';
$api_id = ; // Get your own at my.telegram.org
$api_hash = ''; // Get your own at my.telegram.org
register_shutdown_function(function() {
\danog\MadelineProto\Logger::log(['Serializing instances...']);
foreach (\danog\MadelineProto\Serialization::$instances as $madeline) {
$madeline->serialize();
}
\danog\MadelineProto\Logger::log(['Restarting script...']);
$a = fsockopen((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? 'tls' : 'tcp').'://'.$_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT']);
fwrite($a, $_SERVER['REQUEST_METHOD'].' '.$_SERVER['REQUEST_URI'].' '.$_SERVER['SERVER_PROTOCOL']."\r\n"."Host: ".$_SERVER['SERVER_NAME']."\r\n\r\n");
});
class Pony
{
public static function handle($update) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, 'https://mysite.com/madelinehook.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
$result = curl_exec($ch);
curl_close($ch);
}
}
$MadelineProto = new \danog\MadelineProto\API(['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash], 'connection_settings' => ['all' => ['protocol' => 'https']], 'logger' => ['logger' => 2, 'logger_param' => __DIR__.'/Madeline.log'], 'updates' => ['update_handler' => ['\Pony', 'handle']]]);
$MadelineProto->session = 'session.madeline';
// your bot
A
A
A
A
DG
DG