Skip to content

feat(chatwoot-adapter): relay locations and stickers as first-class types (#609)#26

Merged
rmyndharis merged 1 commit into
mainfrom
feat/chatwoot-location-sticker
Jul 3, 2026
Merged

feat(chatwoot-adapter): relay locations and stickers as first-class types (#609)#26
rmyndharis merged 1 commit into
mainfrom
feat/chatwoot-location-sticker

Conversation

@rmyndharis

Copy link
Copy Markdown
Owner

Part of rmyndharis/OpenWA#609 (P2). Folds into the unreleased v0.2.0.

Locations

A shared WhatsApp location has no media blob, so it previously fell through to an empty message. It now posts a Chatwoot text bubble:

📍 <description — address, when present>
<the message's own url, else https://maps.google.com/?q=<lat>,<lng>>

threaded like any other message (source_id), and sender-prefixed in groups.

Stickers

A sticker is uploaded through the existing media path but is now named sticker.webp with an image/webp content type so Chatwoot renders it as an image rather than an unnamed file. A sticker whose blob was omitted for size falls back to a 🎨 Sticker placeholder instead of an empty bubble.

Adds location to the vendored IncomingMessage type (the host already populates it on the inbound hook for both engines).

Tests

New: a shared location relays as a text bubble containing the description and a maps link; a sticker relays as a sticker.webp / image/webp attachment. Full suite green (226 tests across all plugins), tsc --noEmit clean, plugin packages, catalog up to date.

…ypes (#609)

A shared WhatsApp location previously relayed as an empty bubble; it now
posts a Chatwoot text message with a pin line (description/address when
present) and an openable link (the message's own url, else a maps query),
threaded like any other message. A sticker is uploaded as an image/webp
attachment named sticker.webp so Chatwoot renders it, and an omitted
sticker falls back to a short placeholder.

Adds `location` to the vendored IncomingMessage type. Folded into the
unreleased v0.2.0.
@rmyndharis rmyndharis merged commit 3a77b8c into main Jul 3, 2026
1 check passed
@rmyndharis rmyndharis deleted the feat/chatwoot-location-sticker branch July 3, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant