mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
18 lines
490 B
TypeScript
18 lines
490 B
TypeScript
import SendMsg from "../msg/SendMsg";
|
|
import {ActionName, BaseCheckResult} from "../types";
|
|
import {OB11PostSendMsg} from "../../types";
|
|
|
|
import {log} from "../../../common/utils/log";
|
|
|
|
|
|
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 |