Skip to content

fix: update whatsmeow and add required context.Context params#190

Open
JohanSpannare wants to merge 1 commit intolharries:mainfrom
JohanSpannare:fix/update-whatsmeow-context-params
Open

fix: update whatsmeow and add required context.Context params#190
JohanSpannare wants to merge 1 commit intolharries:mainfrom
JohanSpannare:fix/update-whatsmeow-context-params

Conversation

@JohanSpannare
Copy link
Copy Markdown

Summary

  • Updated go.mau.fi/whatsmeow to latest version (v0.0.0-20260322) to fix "Client outdated (405)" connection failures
  • Added required context.Context parameter to API calls that changed in the newer whatsmeow version: Download, sqlstore.New, GetFirstDevice, GetGroupInfo, GetContact

Issues

Fixes #153, #136, #109, #154

Changes

  • whatsapp-bridge/go.mod — bumped whatsmeow and transitive dependencies, Go 1.25.0
  • whatsapp-bridge/main.go — added context.Background() to 5 function calls

Test plan

  • go build compiles without errors
  • go run main.go connects successfully and displays QR code
  • Scanning QR code links WhatsApp device
  • MCP server can list and read messages

🤖 Generated with Claude Code

The whatsmeow dependency was outdated causing "Client outdated (405)"
connection failures. Updated to latest version and added the now-required
context.Context parameter to Download, sqlstore.New, GetFirstDevice,
GetGroupInfo, and GetContact calls.

Fixes lharries#153, lharries#136, lharries#109

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

Client outdated error (405) and GetGroupInfo API breaking change after whatsmeow update

1 participant