Telegram BOT API has functions to send audio files and documents ,But can it play from an online sound streaming URL?
Asked
Active
Viewed 4,241 times
4 Answers
0
Yes. I use:
define('API_URL', 'https://api.telegram.org/bot'.BOT_TOKEN.'/');
$sendto =API_URL."sendmessage?chat_id=".$chatID."&text=".urlencode($url_track);
file_get_contents($sendto);
For example in row 74 in https://github.com/Ellusu/Jamendo_SearchBot/blob/master/index.php

Matteo Enna
- 1,285
- 1
- 15
- 36
-
It simply open a stream in the browser. – Jacquelyn.Marquardt Dec 23 '16 at 18:48
-
2I think the asker meant a thing such "unidirectional" voip – Jacquelyn.Marquardt Dec 23 '16 at 18:49
0
No, you can't with Telegram Bot APIs. You must download the file and upload it on Telegram servers.

MarcoBuster
- 1,145
- 1
- 13
- 21
0
It will just show preview of link and if it's an audio, an audio bar will be shown. so the answer is yes, but it will not start automatically and user should download and play it.

Vahid Msm
- 1,032
- 7
- 16