Name cryptorobotnetbot Robot API Token 1898599479:AAE1a9sx6wcnUgz_y1SpA-Ep50aLx6ZN6ic GetUpdates https://api.telegram.org/bot{$token}/getUpdates SendMessage https://api.telegram.org/bot1898599479:AAE1a9sx6wcnUgz_y1SpA-Ep50aLx6ZN6ic/sendMessage Post: chat_id={$chat_id}&text={$message} https://api.telegram.org/bot1898599479:AAE1a9sx6wcnUgz_y1SpA-Ep50aLx6ZN6ic/sendMessage?chat_id=1558970322&text=Hello https://api.telegram.org/bot1898599479:AAE1a9sx6wcnUgz_y1SpA-Ep50aLx6ZN6ic/getUpdates // Establecer webhook https://api.telegram.org/bot/setwebhook?url=https://yourdomain.com/yourbot.php // Mandar Fotos $bot_url = "https://api.telegram.org/bot/"; $url = $bot_url . "sendPhoto?chat_id=" . $chat_id ; $post_fields = array('chat_id' => $chat_id, 'photo' => new CURLFile(realpath("/path/to/image.png")) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPHEADER, array( "Content-Type:multipart/form-data" )); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields); $output = curl_exec($ch);