Skip to content

wecom bot support [quote] and [image] type message#3371

Merged
crazywoola merged 14 commits into
langgenius:mainfrom
EllenEyes:feature/zyh_0630
Jul 20, 2026
Merged

wecom bot support [quote] and [image] type message#3371
crazywoola merged 14 commits into
langgenius:mainfrom
EllenEyes:feature/zyh_0630

Conversation

@EllenEyes

Copy link
Copy Markdown
Contributor

Summary

issues: #3362

Change Type

  • Documentation / non-plugin change
  • Non-LLM plugin (tools, extensions, datasource, etc.)
  • LLM plugin

Screenshots / Videos

Drag and drop images or videos directly into this box — GitHub uploads them automatically.
Show the fix, the new feature, or before/after behavior for breaking changes.

Before After
https://github.com/user-attachments/assets/f349d11d-3e0e-4430-993c-5d23d8bc5bbd

Version

  • Bumped top-level version in manifest.yaml (not the one under meta)
  • dify_plugin>=0.3.0,<0.6.0 is declared in pyproject.toml and locked in uv.lock (or kept in requirements.txt for legacy plugins without uv.lock) — SDK docs

Testing

  • Local deployment — Dify version: 1.11.4 or later
  • SaaS (cloud.dify.ai)

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Jun 30, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances the WeCom bot endpoint by adding support for downloading and decrypting images, parsing quoted messages, and uploading these images to Dify. Feedback on the changes includes a critical correction to pass the uploaded files as a top-level files parameter in the Dify Chat API invocation rather than nesting them inside inputs. Additionally, it is recommended to fix a typo in the quoted message parsing ("[imgae]" to "[image]") and to add validation checks for input length and PKCS7 padding in the decryption helper to prevent potential runtime exceptions.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread extensions/wecom_bot/endpoints/wecom_message.py
Comment thread extensions/wecom_bot/endpoints/wecom_message.py Outdated
Comment thread extensions/wecom_bot/endpoints/wecom_message.py
EllenEyes and others added 3 commits June 30, 2026 17:26
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@crazywoola

Copy link
Copy Markdown
Member

Please bump the version in the manifest.

@EllenEyes

Copy link
Copy Markdown
Contributor Author

Please bump the version in the manifest.

I've bumped the version to 0.0.7 in the manifest.

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 20, 2026
@crazywoola
crazywoola deployed to extensions/wecom_bot July 20, 2026 06:37 — with GitHub Actions Active
@crazywoola
crazywoola merged commit 3a11eae into langgenius:main Jul 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants