mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 21:10:23 +00:00
@@ -4,7 +4,7 @@ import { FileNapCatOneBotUUID } from '@/common/file-uuid';
|
||||
import { ActionName } from '@/onebot/action/router';
|
||||
import { OB11MessageImage, OB11MessageVideo } from '@/onebot/types';
|
||||
import { z } from 'zod';
|
||||
import { coerce } from '@/common/coerce';
|
||||
import { actionType } from '@/common/coerce';
|
||||
export interface GetFileResponse {
|
||||
file?: string; // path
|
||||
url?: string;
|
||||
@@ -14,8 +14,8 @@ export interface GetFileResponse {
|
||||
}
|
||||
|
||||
const GetFileBase_PayloadSchema = z.object({
|
||||
file: coerce.string().optional(),
|
||||
file_id: coerce.string().optional(),
|
||||
file: actionType.string().optional(),
|
||||
file_id: actionType.string().optional(),
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user