Add history sync, send files, and chat details#24
Merged
Conversation
- sync past messages via whatsmeow HistorySync events on connect - send_file tool: upload and send images, videos, docs, audio - get_chat tool: detailed group info with participants and topic - media_type field on stored messages for future download support - schema migration: adds media_type column to existing databases closes #20 #22 #23
store raw protobuf for media messages in a media_proto column. new download_media tool decrypts and saves media to ~/.whasapo/media/ using whatsmeow's Download(). supports images, videos, documents, audio, and stickers. proto is stored for both live messages and history sync, so media can be downloaded after the fact. closes #21
37 tests covering: - extractTextAndMedia: all message types (text, image, video, doc, audio, sticker, location, contact, poll, nil, unsupported) - contactName: fallback chain - truncate: edge cases - extensionFromMime: known/unknown types - semverGreater: 15 cases including multi-digit segments - SQLite: store, query, filter, upsert, media type, download errors new test.yml workflow runs on push to main and all PRs. release.yml now runs tests before building. removed stale commit_helper files.
This was referenced Apr 13, 2026
Closed
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.
Summary
Three major features that close the gap with competitors:
History sync (#20)
*events.HistorySyncto load past messages on connectSend files (#22)
send_filetool: send images, videos, documents, audioUpload()+SendMessage()with proper media typesGet chat detail (#23)
get_chattool: detailed group infoAlso
media_typefield added to stored messages (schema auto-migrates)extractTextrefactored to also return media typeCloses #20, #22, #23. #21 (media download) is tracked separately.
Tools (now 6)
send_messagelist_chatsget_messagessearch_contactsget_chatsend_fileTest plan
make buildpasseswhasapo servesyncs ~15k messages on connectget_chatreturns group details with participantssend_filesends an image to a contact