!sticker command transforms images, videos, GIFs, and even existing stickers into custom WhatsApp stickers that you can use in conversations.
Basic Usage
- Send an image/video with
!stickeras the caption - Reply to an image/video/sticker message with
!sticker
Creating Stickers
From Image (Caption)
From Image (Reply)
Sticker Formats
Cropped (Default)
Creates a standard square sticker with cropped/centered content.StickerTypes.CROPPED:
Full Size
Preserves the original aspect ratio without cropping.Short form for full-size sticker mode
Long form for full-size sticker mode
Supported Media Types
| Media Type | Supported | Notes |
|---|---|---|
| Images (JPG, PNG) | ✅ | Best quality results |
| Videos | ✅ | Max 10 seconds |
| GIFs | ✅ | Max 10 seconds |
| Existing Stickers | ✅ | Can convert between formats |
Limitations
Video Length
Videos and GIFs are limited to 10 seconds maximum. From StickerHandler.ts:35-38:File Size
Maximum file size is 10MB to prevent memory issues. From StickerHandler.ts:41-46:Sticker Metadata
Every sticker is created with custom metadata:The sticker pack name visible in WhatsApp
Your WhatsApp display name (pushName) or phone number
Sticker categories/emojis
JPEG quality (0-100) for optimization
Error Handling
No Media Provided
Unsupported Media Type
Processing Failed
If the sticker creation process encounters an error: Response:Advanced Usage
Converting Sticker Formats
You can convert an existing cropped sticker to full size:Batch Processing
For multiple images:Implementation Details
Media Download
The bot downloads media using Baileys’downloadMediaMessage function (StickerHandler.ts:66-74):
Sticker Creation
Stickers are created using thewa-sticker-formatter library, which handles the conversion to WhatsApp’s sticker format.
Author Name
The sticker author is set to your WhatsApp display name, falling back to your phone number prefix (StickerHandler.ts:77):Why do my stickers show 'game' as the pack name?
Why do my stickers show 'game' as the pack name?
The pack name is hardcoded to “game” in the current implementation (StickerHandler.ts:78). This could be made configurable in a future update.
Can I create animated stickers?
Can I create animated stickers?
Yes! Send a GIF or short video (max 10 seconds) with
!sticker. The bot will convert it to an animated sticker.What's the difference between cropped and full?
What's the difference between cropped and full?
- Cropped: Centers and crops the image to fill a square sticker (default WhatsApp behavior)
- Full: Preserves the original aspect ratio, adding padding if needed
!sticker full for images where you don’t want any content cropped out.Can I change the sticker pack name?
Can I change the sticker pack name?
The current implementation uses a fixed pack name. The pack name and ID are defined in StickerHandler.ts:78 and :87. To customize this, you would need to modify the source code.
Examples
Profile Picture to Sticker
- Save someone’s profile picture
- Send it to the bot with
!stickercaption - Use the sticker in conversations
Meme to Sticker
- Find a meme image
- Forward it to the bot
- Reply with
!sticker - Share the meme sticker
Screenshot to Sticker
- Take a screenshot
- Send to bot with
!sticker - Creates a full-screen sticker (use
!sticker fullto preserve aspect ratio)
Related Commands
- !help - Get general help with bot commands