Skip to main content

$reactions.audio

This method allows you to use an audio recording as a bot’s response.

It takes an object with the following fields as an argument:

  • value — link to the audio file.
  • name — audio file name, an optional parameter.
caution
Please note that each channel sets its own restrictions on uploaded audio files: playback duration, file size, supported formats, etc. Make sure your file complies with all the channel criteria.
caution
Learn more about channel loading restrictions: Google Assistant, Telegram.

How to use

script:
$reactions.audio('https://hostname/demo_bot/demo.wav');
script:
$reactions.audio({name: 'Audio file name', value: 'https://hostname/demo_bot/demo.wav'});