Hello, Assalamu Aleykum everyone, please help me with accepting multiply files in telegram bot, i send 8-10 files at once, then i need this files to be pairs, first file with second, second with third and so on, then all pairs tiil last should be sended to Ai, to create video from this photos, then all created videos should be sended to telegram with approve all of them, if yes → remains, if button no → remake and resend.
I developed project like this but without media group, with sending 1 photo, one by one.
→

image1920×1080 117 KB
I dont ask help me with all bot, but at less for one part of it.
God bless you.
Thanks for changing this into the correct category 
It’s hard to see from the picture, can you paste the specific part where the merging is happening (our should happen?). If I understand correctly the incoming files are like:
[
”Photo01.jpg”,
“Video01.mp4”,
”Photo02.jpg”,
“Video02.mp4”,
”Photo03.jpg”,
“Video03.mp4”
...
]
Right?
1 Like
Yes, forgot to telling thank you for clue. No, i have bot in telegram, my client developes stands in photoshop, and wants that stand to be video 360*, for this reason he opens kling.ai and put photos there for make video, also sorry for my language im not native speaker), and so, he wants me to develope telegram bot, where he will send 9-10 files with stand and all files will go to AI, and should be covered to video, but how? imagine you have 2 photo of your head, from 2 sides, you put them to AI, and AI should make smooth fly of your head, so our stand is same.
What we need is when i send to telegram bot 10 files, it accept it like mediagroupid, not like every file separetely, we need bot to accept all 10 files in best rezolution and send them in pairs, first photo with second should be sended to AI, second photo with third should be sended to AI, for what? for developing fly of ALL of sides of stand, if you my brother have questions, ask please.
I think I understand the what you are trying to build. It seems more like a question related to how the Telegram bot organizes the incoming files than a question about n8n, but. from a quick search:
- it seems like there’s no way to ensure the items inside a
mediagroupare in a specific order. See here
- even if you can, this strategy would only work if the user sends all the files at once, what happens it they are attaching them in separate messages?
Perhaps you can come out with a more robust way of getting the relations between files:
- Use a bot command like
/create, after which the bot asks explicitelly for the front and side pictures
- Require the user to format the images in a specific way, for example:
name_of_stand-front / name_of_stand-right
No bro, i exactly need to send all files at once, then they should be organized in pairs as I said at the top, first file with second, second with third and so - on, i have a trouble with accepting massive with files, i could develope such bot, but with 1 file sending. help please