Mediafiles
The Mediafiles component sends photos and videos in a single message. The Mediafiles works on Telegram.
Setup
1. Add the Mediafiles component to the screen.
2. Select a file from the file system or simply drag and drop it onto the "Select File" button. You can also add the file as a link.
3. Specify what exactly you added — an image or a video. If you do not select the media type, an error will pop up when you try to save it. If you select the wrong media type, the files may not be received.
4. Files are added one at a time. To add the next file, click the Add Media button, then add the next file. One component can contain both images and videos. For the component to work properly, you need to add from 2 to 10 media.
To remove media from the component, click on the serial number of this media and click the Delete Media button.
5. If you need to protect media from forwarding, activate the Protect Content checkbox for Telegram.
6. If you want the media files to come to the bot with the animated effect, select or manually add a Unique identifier of the message effect for Telegram.
7. If necessary, specify the recipient ID.
All fields in the component are compiled — it is possible to add values from the template.
8. Save the changes.
Adding Media Files as an Array
You can add media files as an array.
To do this:
First, save the array using the Set Variable component.
Enter the name of the variable containing the array in the Media Array Variable Name field of the Media Files component.
Once you fill in the Media Array Variable Name field, you will no longer be able to add media files as images, videos, or regular links. To use these options again, clear the Media Array Variable Name field.
The array can contain media URLs, objects with media URLs, or a combination of both formats.
The array can contain only videos, only images, or a mix of videos and images. The same limits apply when adding media as an array: each component can contain 2 to 10 files.
Component execution settings
Disable component — when the checkbox is enabled, the component will not be executed, as if it were not part of the flow. To enable the component again, simply uncheck the box.
If platform is not available execute the next component — the bot will skip the current component and move on to the next one if the selected platform is unavailable.