Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

实现机器人发送多种格式的消息 (originally #212) #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
xen0n wants to merge 3 commits into v2
base: v2
Choose a base branch
Loading
from pr212

Conversation

@xen0n
Copy link
Owner

@xen0n xen0n commented Aug 20, 2025
edited
Loading

cc @dongowu

TODOs:

  • 避免使用 validator 全局量(剥离 validation 功能?)
  • 给 webhook message 类型添加 Webhook 前缀,以与常规 message 类型区分

wudongodong and others added 2 commits August 20, 2025 17:47
机器人发消息支持文本(text)、markdown(markdown)、图片(image)、图文(news)、文件(file)、语音(voice)、模板卡片(template_card)七种消息类型
[xen0n: rebased and squashed, also fixed the summary line]
* rename "WebHook" to "Webhook" for consistency
* rename "Struct2Map" to "ToWebhookMessagePayload" for clarity of
 interface methods
* add static type assertions to guarantee interface compatibility of the
 various built-in WebhookMessage types
Copy link

dongowu commented Aug 20, 2025

@xen0n 我已经完成了这部分的代码更改 并提交了pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

AltStyle によって変換されたページ (->オリジナル) /