Telegram Message Pusher


是什么

快速使用

只要添加bot机器人,就可以使用它:
以下是调用的demo:

<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://bot.tohot.top/send/你的toekn", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_POSTFIELDS => "text=1232132", //发送内容 CURLOPT_HTTPHEADER => array( "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }

  • php的POST方式(发送格式为application/json):
  • 
    

    <?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://bot.tohot.top/send/你的token", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "{\"text\":\"aaaaaaa\"}", //发送内容 CURLOPT_HTTPHEADER => array( "cache-control: no-cache", "content-type: application/json" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }

    可靠性和安全性