Conversation
Implement WhatsApp as a second messaging platform alongside Telegram. Adds webhook-based message handling (text, image, voice), generalized platform_images table for cross-platform image retrieval, setup wizard and CLI command (`memclaw whatsapp`), and updated documentation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace Meta Cloud API (Business account + webhook) with neonize (whatsmeow under the hood) so the bot links to the user's personal WhatsApp via QR pairing — same simple UX as Telegram/Slack. - WhatsAppBot in memclaw/bot/whatsapp_handlers.py: QR pairing, event handlers for text/image/audio, media download via download_any, replies via send_message/send_image - memclaw whatsapp CLI runs the neonize client directly; session persists at ~/.memclaw/whatsapp/session.db - Drop whatsapp_phone_number_id/access_token/verify_token from config + setup wizard - Default policy: only self-notes (IsFromMe) are processed; WHATSAPP_ALLOWED_NUMBERS opens it up to other E.164 numbers - pyproject: add neonize, drop unused starlette/uvicorn
- `memclaw bot` → `memclaw telegram` (clearer alongside `memclaw whatsapp`) - Wizard only prompts for keys relevant to the invoking channel: `memclaw telegram` asks for core + Telegram keys; `memclaw whatsapp` asks for core keys only. `memclaw configure` still shows everything. - Previously-saved keys are preserved when running a channel-scoped setup.
…save
The split between `image_save`, `telegram_image_save`, and
`whatsapp_image_save` was historical — each stored the same kind of
record keyed on a different opaque reference. Collapse into one tool:
image_save(description, media_ref, caption?)
Platform tagging is now injected by the executor via MemclawAgent's
new `platform` kwarg. Handlers pass `platform="telegram"` /
`"whatsapp"`; the interactive CLI leaves it unset and records land
under `platform="local"`. Both handlers now include `media_ref=` in
the photo prompt (previously `file_id=` / `file_path=`).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.