How can I download more than 3 photos that come in the same message? #711
alexiiispc
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have tried to download 4 photos of the same message but I can't get it, here is the code I tried
This downloads only 1 image
if (message.media) { const link = await handleMedia(message.media, userId); if (link.includes("pdf")) { filesRecibeds.add(link); } else { img_recibeds.push(link); } }
and this downloads the same photo 2 times, but not the 4 that are in the message, what am I doing wrong?
`if (message.groupedId) {
const albumMessages = await client.getMessages(message.peerId, {
ids: message.id,
});
Beta Was this translation helpful? Give feedback.
All reactions