Audio
Audio component sends an audio file in mp3 format to users.
The maximum size of the uploaded audio file is 5 MB.
There are limits on the number of uploaded files (image, audio, document) per account:
- A trial plan allows to upload no more than 100 files of all types to all bots on the account. The total size of the files should not exceed 100 MB.
- On the Advanced plan, you can upload no more than 2500 files of all types to all bots.
- On the Professional plan, you can upload no more than 5000 files of all types to all bots.
Give the audio file a name in Latin letters, one word and no spaces. Otherwise the audio may not load or display.
Please note that WhatsApp supports only ACC codec. If the codec is different, the bot will stop at component Audio.
Configuring the сomponent
From the Components section of the right panel, drag or double-click the Audio component to the desired screen.
After clicking the Choose file button, select the audio file from the file system and load it into the component.
In the Enter URL field, you can output a variable in double curly braces {{var}}.
The main condition is that the variable value is a link to the file. This can be either last_request or a voice message sent by the user.
The link must contain a link to download the audio file.
The Specify URL field supports links to audio from open Telegram channels. To get such a link you need to right-click on the audio, then click on Copy link to the message. If such a link is inserted into the Audio component, the audio will come to the bot when the component is activated.
After you add the audio link, click on the free builder area before saving. It will give the file enough time to download successfully.
Audio settings for Telegram:
- Protect the content — it will not allow you to forward the image.
- Unique identifier of the message effect — the animated effect you selected will come along with the audio. You can select this effect from the drop-down list or manually register it as a numeric code.
- Audio caption — the caption will be displayed below the audio.