NapCatQQ/src/onebot11/action/group/SendGroupMsg.ts
2024-05-18 12:40:41 +08:00

17 lines
450 B
TypeScript

import SendMsg from '../msg/SendMsg';
import { ActionName, BaseCheckResult } from '../types';
import { OB11PostSendMsg } from '../../types';
// 未检测参数
class SendGroupMsg extends SendMsg {
actionName = ActionName.SendGroupMsg;
protected async check(payload: OB11PostSendMsg): Promise<BaseCheckResult> {
delete payload.user_id;
payload.message_type = 'group';
return super.check(payload);
}
}
export default SendGroupMsg;