mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-03-02 08:40:26 +00:00
20 lines
699 B
TypeScript
20 lines
699 B
TypeScript
import SendMsg, { convertMessage2List } from '../msg/SendMsg';
|
|
import { OB11PostSendMsg } from '../../types';
|
|
import { ActionName } from '../types';
|
|
|
|
export class GoCQHTTPSendForwardMsg extends SendMsg {
|
|
actionName = ActionName.GoCQHTTP_SendForwardMsg;
|
|
|
|
protected async check(payload: OB11PostSendMsg) {
|
|
if (payload.messages) payload.message = convertMessage2List(payload.messages);
|
|
return super.check(payload);
|
|
}
|
|
}
|
|
|
|
export class GoCQHTTPSendPrivateForwardMsg extends GoCQHTTPSendForwardMsg {
|
|
actionName = ActionName.GoCQHTTP_SendPrivateForwardMsg;
|
|
}
|
|
|
|
export class GoCQHTTPSendGroupForwardMsg extends GoCQHTTPSendForwardMsg {
|
|
actionName = ActionName.GoCQHTTP_SendGroupForwardMsg;
|
|
} |