@karinjs/adapter-qqbot 1.2.7 → 1.2.8
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.
- package/lib/core/index.js +2 -2
- package/package.json +1 -1
package/lib/core/index.js
CHANGED
|
@@ -26,7 +26,7 @@ export class AdapterQQBot {
|
|
|
26
26
|
/** 原生 */
|
|
27
27
|
case 1: {
|
|
28
28
|
this._sendNsg = async (e, elements, type, openid, message_id) => {
|
|
29
|
-
const list = await button(e.msg);
|
|
29
|
+
const list = await button(e.msg, e);
|
|
30
30
|
elements.push(...list);
|
|
31
31
|
return await markdownRaw({ bot: this, data: elements, type, openid, message_id });
|
|
32
32
|
};
|
|
@@ -35,7 +35,7 @@ export class AdapterQQBot {
|
|
|
35
35
|
/** 旧图文模板 */
|
|
36
36
|
case 3: {
|
|
37
37
|
this._sendNsg = async (e, elements, type, openid, message_id) => {
|
|
38
|
-
const list = await button(e.msg);
|
|
38
|
+
const list = await button(e.msg, e);
|
|
39
39
|
elements.push(...list);
|
|
40
40
|
return await markdownTemplate({ bot: this, data: elements, type, openid, message_id });
|
|
41
41
|
};
|