Skip to content

Commit

Permalink
fix: telegram image url 拼接错误 #295
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Nov 12, 2024
1 parent 74ab291 commit b7425c9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/buildinfo.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/timestamp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/telegram/handler/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class ChatHandler implements MessageHandler {
const file = await api.getFileWithReturns({ file_id: id });
const url = file.result.file_path;
if (url) {
params.images = [url];
params.images = [`${ENV.TELEGRAM_API_DOMAIN}/file/bot${context.SHARE_CONTEXT.botToken}/${url}`];
}
}
return chatWithLLM(message, params, context, null);
Expand Down

0 comments on commit b7425c9

Please sign in to comment.