-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat: add support for sending sticker packs #3614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Added sendMediaAsStickerPack option to API and typings - Implemented sticker pack creation and sending logic - Updated example.js with !sticker and !pack commands - Added required dependencies: archiver, sharp - Improved type definitions and
|
@alechkos About the introduced dependencies, it uses the before optionals archiver and unzipper, and the sharp is used to generate the pack thumbnail. |
alechkos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use sharp.
|
Yeah, I figured out why already haha, tomorrow I'll rework to get rid of sharp |
…ker pack thumbnails
- Downgraded 'archiver' from ^7.0.1 to ^5.3.1 - Rolled back 'unzipper' from ^0.10.14 to ^0.10.11 - Reverted other version changes introduced in the PR
|
@alechkos I've removed Sharp from the stack and now use Also, to ease my OCD, could you approve the PR: wwebjs/wwebjs.dev#97 |
alechkos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sergiooak, I tested and it seems that there is no difference between sending a regular pack and one with a custom thumbnail.
|
Also, you can't add a sticker pack to your stickers, it responds in |
|
The idea is great, I hope this functionality will be added one day. |




PR Details
Summary:
Adds support for sending sticker packs, updates typings, and provides usage examples.
Description
sendMediaAsStickerPackoption to the API and typings.example.jswith new commands for sticker and sticker pack sending.archiver,sharp.Motivation and Context
This change allows users to send multiple stickers as a pack, improving feature parity with WhatsApp’s native functionality and expanding bot/media capabilities.
How Has This Been Tested
example.jsbot commands (!sticker,!pack).Environment
Types of changes
Checklist