OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions164

Message → Send Sticker

AI-generated

Summary

Sends a WhatsApp sticker to a chat from a selected session. Select the sticker source from URL, base64 data, or an incoming binary property. Optionally quote an earlier message. Optionally provide an idempotency key to safely retry without duplicate sends on OpenWA 0.25.0 or later.

Inputs

  • Session Name or ID (required) — Session to send the sticker from; select a session or provide its ID.
  • Chat Name or ID (required) — Recipient chat ID, such as a personal chat ending in @c.us or a group ending in @g.us.
  • Sticker Source — Choose the sticker source: URL, Base64, or Binary Data. Defaults to URL.
  • Sticker URL (required) — Shown for URL source. URL of the sticker image; WhatsApp expects WebP.
  • Base64 Data (required) — Shown for Base64 source. Base64-encoded sticker data.
  • MIME Type (required) — MIME type of the base64 data as it actually is, such as image/png. OpenWA converts a PNG or JPEG to WebP, but on whatsapp-web.js data declared as image/webp skips that conversion, so non-WebP bytes labelled image/webp arrive as a broken sticker.
  • Binary Property (required) — Shown for Binary Data source. Name of the incoming binary property containing the sticker; WebP at 512×512 is recommended.
  • Quoted Message ID — Optionally quote an earlier message in the recipient chat. An ID the engine cannot resolve causes the send to fail; Baileys can quote only messages it has stored.
  • Mentions — Optional WhatsApp IDs to mention, provided as a comma-separated list, JSON array, or expression resolving to an array. The message or caption must contain a matching @-mention token for it to render.

Output shape

A single item containing the API response.

The selected sticker source is sent as media: binary data uses the configured binary property (ideally WebP 512512), base64 data includes its MIME type (with automatic conversion from PNG/JPEG unless mimeType is image/webp), or URL (expected as WebP). Mentions are ignored on stickers by the engine and do not appear. Use the optional idempotency key to safely retry sending the same sticker without duplicates on OpenWA 0.25.0 or later.

Links

Discussion