mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-11 14:49:02 +08:00
17 lines
450 B
TypeScript
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;
|