Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
¿Cómo puedo hacer que la página muestre un mensaje de éxito al enviar a Telegram y redirigir?

// El es el código de configuración del formulario //

 $settings = include 'settings.php'; $fname = $_POST['fname']; $maili = $_POST['maili']; $service = $_POST['service']; $issage = $_POST['issage'];

// Mensaje a enviar //

 $message .= "********** Message Head **********\n"; $message .= "# NAME : {$fname}\n"; $message .= "# EMAIL : {$maili}\n"; $message .= "# SERVICE : {$service}\n"; $message .= "# MESSAGE : {$issage}\n";

// Enviando el mensaje a Telegram //

 $send = ['chat_id'=>$settings['chat_id'],'text'=>$message]; $website = "https://api.telegram.org/{$settings['bot_url']}"; $ch = curl_init($website . '/sendMessage'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, ($send)); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($ch); curl_close($ch);
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!