fix(qq): send markdown messages instead of plain text (#3732)
* fix(ci): decouple tweet from Docker push in release workflows Remove Docker from the tweet job's dependency chain in both beta and stable release workflows. Docker multi-platform builds are slow and can be cancelled by concurrency groups, which was blocking the tweet from ever firing. The tweet announces the GitHub Release, not the Docker image. * fix(qq): send markdown messages instead of plain text Change msg_type from 0 (plain text) to 2 (markdown) and wrap content in a markdown object per QQ's API documentation. This ensures markdown formatting (bold, italic, code blocks, etc.) renders properly in QQ clients instead of displaying raw syntax. Fixes #3647
This commit is contained in:
parent
93b16dece5
commit
74a5ff78e7
@ -257,8 +257,10 @@ impl Channel for QQChannel {
|
||||
(
|
||||
format!("{QQ_API_BASE}/v2/groups/{group_id}/messages"),
|
||||
json!({
|
||||
"content": &message.content,
|
||||
"msg_type": 0,
|
||||
"markdown": {
|
||||
"content": &message.content,
|
||||
},
|
||||
"msg_type": 2,
|
||||
}),
|
||||
)
|
||||
} else {
|
||||
@ -273,8 +275,10 @@ impl Channel for QQChannel {
|
||||
(
|
||||
format!("{QQ_API_BASE}/v2/users/{user_id}/messages"),
|
||||
json!({
|
||||
"content": &message.content,
|
||||
"msg_type": 0,
|
||||
"markdown": {
|
||||
"content": &message.content,
|
||||
},
|
||||
"msg_type": 2,
|
||||
}),
|
||||
)
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user