Skip to content

Commit

Permalink
fix: 编译类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn committed Mar 25, 2024
1 parent 9a3aeb2 commit de478f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/qq/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export default class QQAdapter extends Adapter<"qq", Sendable> {
throw new Error(`call internal method error:${e.message}`);
}
}
async uploadMedia(uin:string,target_id:number,target_type:'group'|'user',file_data:string,file_type:1|2|3){
async uploadMedia(uin:string,target_id:string,target_type:'group'|'user',file_data:string,file_type:1|2|3){
const bot = this.getOneBot<Bot>(uin).internal;
return bot.uploadMedia(target_id,target_type,file_data,file_type)
}
Expand Down

0 comments on commit de478f8

Please sign in to comment.