import SendMsg, { ContextMode } from '../msg/SendMsg';
import { ActionName, BaseCheckResult } from '../types';
import { OB11PostSendMsg } from '../../types';

// 未检测参数
class SendGroupMsg extends SendMsg {
    actionName = ActionName.SendGroupMsg;
    contextMode: ContextMode = ContextMode.Group;

    protected async check(payload: OB11PostSendMsg): Promise<BaseCheckResult> {
        delete payload.user_id;
        payload.message_type = 'group';
        return super.check(payload);
    }
}

export default SendGroupMsg;
