mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
16 lines
453 B
TypeScript
16 lines
453 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 as Partial<OB11PostSendMsg>).user_id
|
|
payload.message_type = 'group'
|
|
return super.check(payload)
|
|
}
|
|
}
|
|
|
|
export default SendGroupMsg
|