mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-01 07:19:03 +08:00
18 lines
535 B
TypeScript
18 lines
535 B
TypeScript
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;
|