mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
18 lines
565 B
TypeScript
18 lines
565 B
TypeScript
import SendMsg, { ContextMode } from '@/onebot/action/msg/SendMsg';
|
|
import { ActionName, BaseCheckResult } from '@/onebot/action/router';
|
|
import { OB11PostSendMsg } from '@/onebot/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;
|