Advertisement
aliakbarbeda2

TTS: Post.php

Apr 2nd, 2022
895
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.90 KB | None | 0 0
  1. <?php
  2. $ch = curl_init();
  3. curl_setopt($ch, CURLOPT_URL, 'https://api.telegram.org/bot'.$_GET['token'].'/sendAudio');
  4. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  5. curl_setopt($ch, CURLOPT_POST, true);
  6. $id=$_GET['id'];
  7. $data = array(
  8.     'chat_id' => ''.$id.'',
  9.     'audio' => 'https://translate.google.com/translate_tts?ie=UTF-8&tl='.$_GET['lang'].'&client=tw-ob&q='.$_GET['q'].'',
  10.     'caption' => '🗣️ '.$_GET['caption'].'',
  11.     'title' => ''.$_GET['q'].'',
  12.     //'protect_content' => 'true',
  13.     'thumb' => 'https://cdn.jpegmini.com/user/images/pufffin_blurred.jpg',
  14.     'performer' => '@basaacehorg',
  15.     'file_name' => '@basaacehorgX'
  16.    
  17. );
  18.  
  19. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  20. $output = curl_exec($ch);
  21. $info = curl_getinfo($ch);
  22. curl_close($ch);
  23. ECHO 'BISA id ='.$id.'   https://translate.google.com/translate_tts?ie=UTF-8&tl='.$_GET['lang'].'&client=tw-ob&q='.$_GET['q'].'';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement