Skip to content

Conversation

@vinikjkkj
Copy link
Collaborator

@vinikjkkj vinikjkkj commented Nov 13, 2025

example

await sock.sendMessage(msg.key.remoteJid!, {
	album: {
		medias: [
		    { image: { url: './Media/cat.jpeg' } },
		    { image: { url: './Media/icon.png' } },
		    { image: { url: './Media/meme.jpeg' } }
		]
	}
})
image

@whiskeysockets-bot
Copy link
Contributor

Thanks for opening this pull request and contributing to the project!

The next step is for the maintainers to review your changes. If everything looks good, it will be approved and merged into the main branch.

In the meantime, anyone in the community is encouraged to test this pull request and provide feedback.

✅ How to confirm it works

If you’ve tested this PR, please comment below with:

Tested and working ✅

This helps us speed up the review and merge process.

📦 To test this PR locally:

# NPM
npm install @whiskeysockets/baileys@WhiskeySockets/Baileys#album-message

# Yarn (v2+)
yarn add @whiskeysockets/baileys@WhiskeySockets/Baileys#album-message

# PNPM
pnpm add @whiskeysockets/baileys@WhiskeySockets/Baileys#album-message

If you encounter any issues or have feedback, feel free to comment as well.

melodiabl

This comment was marked as spam.

@eltonciatto

This comment was marked as spam.

Copy link
Member

@purpshell purpshell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good quick solution, how about we instead add support for the root albumMessage and then have the children follow up with some property? This makes more sense to me

@ahmmikun

This comment was marked as off-topic.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2025

This PR is stale because it has been open for 14 days with no activity. Remove the stale label or comment or this will be closed in 14 days

@github-actions github-actions bot added the Stale label Dec 6, 2025
@purpshell purpshell added enhancement New feature or request and removed Stale labels Dec 9, 2025
@purpshell
Copy link
Member

Good quick solution, how about we instead add support for the root albumMessage and then have the children follow up with some property? This makes more sense to me

That makes more sense as if we need to change the upload logic some day, we'll have to also change this which could be easily overlooked.

Adding a property like "parentkey" which is a key to the albumMessage should be good enough. It also allows for a lot of freedom as to when the messages get uploaded and allows people to run queueing, failsafes so on.

@purpshell
Copy link
Member

I also implore you to see what the official client has in store for when more media is added beyond the first albumMessage, maybe a message edit is made with the new count.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants