Conversation
…nnels Co-authored-by: unwarkz <14983645+unwarkz@users.noreply.github.com>
Co-authored-by: unwarkz <14983645+unwarkz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for @newsletter in sendMessage and findChannels
feat(channel): add support for @newsletter in sendMessage and findChannels
Mar 13, 2026
unwarkz
approved these changes
Mar 13, 2026
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.
📋 Description
Ports upstream commit
52fa931fromEvolutionAPI/evolution-apidevelop branch. Adds newsletter JID (@newsletter) support across the messaging pipeline.Changes
src/utils/createJid.ts—@newsletteradded to early-return guard; newsletter JIDs now pass through unmodified instead of being treated as phone numberssrc/api/integrations/channel/whatsapp/whatsapp.baileys.service.tswhatsappNumber(): newsletter JIDs short-circuit forEach, returned asOnWhatsAppDto(jid, true, number, undefined, 'newsletter')— skips group/user validationprepareMessage(): outgoing newsletter messages (fromMe && isJidNewsletter) get status forced toDELIVERED(index 3), matching channel delivery semanticsfetchChannels(): new method — queries messages for newsletter JIDs, deduplicates byremoteJid, returns paginated{ total, pages, currentPage, limit, records }src/api/controllers/chat.controller.ts—fetchChannels()delegating to instancesrc/api/routes/chat.router.ts—POST /findChannelsroute wired tochatController.fetchChannels.github/workflows/build_ghcr_image.yml— addedpushtrigger onmainand this branch so GHCR image atghcr.io/unwarkz/evolution-api:latestbuilds automatically on merge🔗 Related Issue
🧪 Type of Change
🧪 Testing
📸 Screenshots (if applicable)
✅ Checklist
📝 Additional Notes
GHCR image build: A workflow run was triggered on push but requires owner approval (Copilot bot trigger). To get
ghcr.io/unwarkz/evolution-api:latestbuilt with these changes:main— the updated workflow will build automatically on pushWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkpoint.prisma.io/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node /home/REDACTED/work/evolution-api/evolution-api/node_modules/prisma/build/child {"product":"prisma","version":"6.19.0","cli_install_type":"local","information":"","local_timestamp":"2026-03-13T11:05:36Z","project_hash":"207058b3","cli_path":"/home/REDACTED/work/evolution-api/evolution-api/node_modules/.bin/prisma","cli_path_hash":"1a1f git conf�� get --local modules/@npmcli/run-script/lib/node-gyp-bin/git pull.rebase(dns block)scarf.sh/home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./report.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.