Commit Graph

3 Commits

Author SHA1 Message Date
Zuri ✦
c3cb338937 feat(whatsapp): extract mentions from text and captions
WhatsApp's Baileys library requires a separate mentions array in the
message payload for @mentions to work properly. Without this array,
text like '@5511999999999' appears as plain text instead of a clickable
mention.

This change automatically extracts phone numbers in the format
@<10-15 digits> from the message text AND media captions, adding them
to the mentions array as JIDs (e.g., '5511999999999@s.whatsapp.net').

Supported message types:
- Text messages
- Image with caption
- Video with caption
- Document with caption

Fixes mentions in group chats when using the message tool.
2026-01-26 23:49:38 -03:00
Peter Steinberger
c379191f80 chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
2026-01-14 15:02:19 +00:00
Peter Steinberger
bcbfb357be refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00