The Telegram's problem with attachments


Hi Makers! I wanted to create automation in where when I send a message with attachments such as photos, videos, and PDFs from other channels to my Telegram bot, it automatically translates the message text and sends it to a selected channel with all the attachments I mentioned earlier and sends it to a selected channel. Unfortunately, I’m having trouble with a specific issue I encountered. As you can see in the three images, the Telegram API or doesn’t group individual photos and videos. So, when the bot listens for new messages from me and there are, for example, 2 videos and 3 photos, it only sends the first photo or video whose ID is visible in the image (either a photo or a video, never together). I don’t know why separate arrays are not created under the titles “videos” and “photos” with collections like “video #1,” “video #2,” “photo #1,” “photo #2,” “photo #3.” If that were the case, I could easily use an iterator and map individual photos and videos.


First bundle:

Send an Album (Media Group)

I have already spent a lot of time on this and I have no idea how to solve this problem. Can anyone help me? If you have any doubts, feel free to ask me about details or additional screenshots, as I may have described the problem too broadly. I would be very grateful for any help.

1 Like

Hey @JayJunak

What I assume is you can use Array Aggregator to aggregate all the File IDs (select the target structure as Media Type) to combine multiple files and push them to Telegram Bot (Send an Album module).

Like this:

1 Like

Okay, I’m not sure if I did it right, can you explain it to me in more detail?

1 Like