
You need to configure the branch filters correctly:
-
A branch that passes images with text captions.
-
A branch that passes files (documents) with or without text captions.
Problem: sometimes the text that the user writes to a file or image is transmitted not as message.caption, but as message.text. Because of this, the filters do not work correctly
-
How to correctly filter messages with different types of attachments and captions.
-
How to take both fields into account in filters: message.caption
-
How to handle situations when a file arrives without a caption or the text is written in a separate message.
Потрібно правильно налаштувати фільтри гілок:
- Гілка, яка пропускає зображення з текстовим підписом (caption).
- Гілка, яка пропускає файли (документи) з текстовим підписом або без нього.
Проблема: іноді текст, який користувач пише до файлу або зображення, передається не як message.caption, а як message.text. Через це фільтри не спрацьовують коректно
- Як правильно фільтрувати повідомлення з різними типами вкладень та підписами.
- Як у фільтрах враховувати обидва поля:
message.caption
- Як обробити ситуації, коли файл приходить без caption або текст написано окремим повідомленням.
To do this, you can use the built-in function:
This function may have also been covered in the Make Academy tutorials — refer to the Make Academy Course Overview to learn more.
Here’s an example of how you can use this function:
{{ ifempty(1.message.caption; 1.message.text) }}
(copy-paste the above into the field, or type it exactly as shown)
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
I don’t really understand how to set up the filter in the branch where files with text signatures are supposed to pass through. Please advise, because I’m confused and the whole scenario is falling apart.
Як конкретно налаштувати фільтр в гілці де мають проходити файли з текстовим підписом, я не дуже розумію підкажіть а то я запутався і весь сценарій ламається
We’d love to help, however, you have not provided sufficient information to demonstrate the problem that would allow us to reproduce the scenario and any issue/s and/or error/s.
To allow others to assist you with your scenario, please provide the following:
2. Scenario Blueprint
Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!
To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.
You can upload the file here by clicking on this button:

3. Module Output Bundles
Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).
Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.
A. Upload as a Text File
Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.
You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block
If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
Here are some ways to provide text content in a way that it won’t be modified by the forum.
-
Method 1: Type code fence manually —
Add three backticks ``` in a separate line before and after the content, like this,
```
text goes here
```
-
Method 2: Highlight and click the “preformatted text” button in the editor —

-
Method 3: Upload your file and share the public link —
(this method is only recommended for large files exceeding the forum upload limit)
Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved, and help you with mapping the raw property names from collections.
Sharing these details will make it easier for others to assist you.
In this demonstration, I am sending 34 scanned documents via a file in Telegram with a text signature. Automation does not go beyond the router; I need to configure a filter so that files with signatures are accepted.
На цій демонстрації я надсилаю 34 скани документів через фай у телеграм з текстовим підписом,автоматизація не проходить далі роутера мені потрібно налаштувати фільтр щоб проходили файли з підписом
Юрист 7777.blueprint (18).json (737.5 KB)