2

I have a telegram bot that you can text a YouTube link and it replys with a link that you can open to download the audio format. I wanted to make it more efficient and instead of sending a link (using bot.sendMessage()) that you can click to download, How can I make the bot send the audio it self from the link using bot.sendAudio()? ... Thanks in advance

chris
  • 139
  • 1
  • 1
  • 6
  • Hello Chris and welcome to SO! I would like to advise you some SO documentation that may help you in asking a better qestion. For instance you may be interested about the [topics we discuss here](https://stackoverflow.com/help/on-topic), [the way to ask a 'good' question](https://stackoverflow.com/help/how-to-ask) and [the way to create a minimal, complete and verifiable example](https://stackoverflow.com/help/mcve). If you find it useful, you can still edit your questions. – John-Philip Jul 23 '17 at 09:08

1 Answers1

2

Just use URL string instead of file in sendAudio method.

Note that you can send max 20MB of content.

Sean Wei
  • 7,433
  • 1
  • 19
  • 39