@izhimu/qq 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { setAccountEnabledInConfigSection, deleteAccountFromConfigSection } from "openclaw/plugin-sdk";
6
6
  import { buildChannelConfigSchema, DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk";
7
- import { messageIdToString, getFileType, getFileName, Logger as log } from "./utils/index.js";
7
+ import { messageIdToString, markdownToText, getFileType, getFileName, Logger as log } from "./utils/index.js";
8
8
  import { setContext, setContextStatus, clearContext, setConnection, getConnection, clearConnection } from "./core/runtime.js";
9
9
  import { ConnectionManager } from "./core/connection.js";
10
10
  import { openClawToNapCatMessage } from "./adapters/message.js";
@@ -139,7 +139,7 @@ async function outboundSend(ctx) {
139
139
  const chatId = id || to;
140
140
  const content = [];
141
141
  if (text) {
142
- content.push({ type: "text", text });
142
+ content.push({ type: "text", text: markdownToText(text) });
143
143
  }
144
144
  if (mediaUrl) {
145
145
  switch (getFileType(mediaUrl)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izhimu/qq",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "A QQ channel plugin for OpenClaw using NapCat WebSocket",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",