Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/css/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/css/bale_webhook.php.tar

home/lmsyaran/public_html/classes/bale_webhook.php000064400000001322151165420360016414
0ustar00<?php

require_once __DIR__.'/send.php';

$param= file_get_contents('php://input');
$param= json_decode($param);

$first_name= $param->message->from->first_name;
$chat_id= $param->message->chat->id;
$message_id= $param->message->message_id;
$message= $param->message->text;
$type= $param->message->chat->type;

if ($message!= '###id###')
    exit();

if ($type== 'group')
    $text= "سلام  {$first_name}  شناسه عددی گروه
{$chat_id} میباشد ";
elseif ($type== 'private')
    $text= "سلام  {$first_name}  شناسه عددی شما
{$chat_id} میباشد ";

$data= [[
    'chat_id'=> $chat_id,
    'text'=> $text
]];


$send= new send;
$send->send_bale_message($data);