Skip to content

Commit

Permalink
perf: 优化APIClientBase 的代理调用
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Aug 24, 2024
1 parent 594848a commit a6e1ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/telegram/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function createTelegramBotAPI(token: string): TelegramBotAPI {
return Reflect.get(target, prop, receiver);
}
return (...args: any[]) => {
return target.request(prop as Telegram.BotMethod, args[0]);
return Reflect.apply(target.request, target, [prop as Telegram.BotMethod, ...args]);
};
},
}) as TelegramBotAPI;
Expand Down

0 comments on commit a6e1ff2

Please sign in to comment.