feat(adapter-zalo): Add Zalo adapter and update documentation#331
Open
buiducnhat wants to merge 4 commits intovercel:mainfrom
Open
feat(adapter-zalo): Add Zalo adapter and update documentation#331buiducnhat wants to merge 4 commits intovercel:mainfrom
buiducnhat wants to merge 4 commits intovercel:mainfrom
Conversation
- Add ZaloAdapter class to handle messaging via Zalo Bot Platform API. - Implement message handling, including text, image, and sticker messages. - Create ZaloFormatConverter for markdown to plain text conversion. - Add types for Zalo API responses and webhook payloads. - Implement message splitting to comply with Zalo's 2000-character limit. - Add tests for ZaloFormatConverter to ensure proper formatting and parsing. - Configure TypeScript and build settings for the adapter package. - Update pnpm lockfile and turbo.json for environment variables.
Contributor
|
@buiducnhat is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
packages/adapter-zalo/src/index.ts
Outdated
|
|
||
| // Check for photo message | ||
| if (typeof message === "object" && "raw" in message) { | ||
| const rawMessage = JSON.parse(message.raw) as { |
Contributor
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
Zalo is the most popular chat platform in Viet Nam with about 80M accounts in 2026. So we want to have a native adapter for this project.
@chat-adapter/zalo) for the Chat SDK, enabling bots to runon the Zalo OA platform
adapters.json, logos, adapter card)/docs/adapters/docsindexpackages/adapter-zalo/README.mdwith usage detailsTest plan
pnpm build— all packages build cleanlypnpm --filter docs build— docs app builds without errorspnpm -w run check— lint/format passes/adaptersand confirm Zalo card appears in the grid/docs/adaptersand confirm Zalo column appears in all four featurematrix tables with correct ✅/❌/
/docsand confirm Zalo row is present in the supported platforms table