Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'https://api.telegram.org/bot'.$_GET['token'].'/sendAudio');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POST, true);
- $id=$_GET['id'];
- $data = array(
- 'chat_id' => ''.$id.'',
- 'audio' => 'https://translate.google.com/translate_tts?ie=UTF-8&tl='.$_GET['lang'].'&client=tw-ob&q='.$_GET['q'].'',
- 'caption' => '🗣️ '.$_GET['caption'].'',
- 'title' => ''.$_GET['q'].'',
- //'protect_content' => 'true',
- 'thumb' => 'https://cdn.jpegmini.com/user/images/pufffin_blurred.jpg',
- 'performer' => '@basaacehorg',
- 'file_name' => '@basaacehorgX'
- );
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- $output = curl_exec($ch);
- $info = curl_getinfo($ch);
- curl_close($ch);
- 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