fix: 有时候文件下载地址提示格式错误的问题

This commit is contained in:
Clansty 2022-05-02 11:32:22 +08:00
parent 57191c6207
commit 4a192fcad8
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
1 changed files with 1 additions and 2 deletions

View File

@ -42,8 +42,7 @@ export default class FileAndFlashPhotoController {
});
const downloadUrl = await this.oicq.getChat(Number(fileInfo.roomId)).getFileUrl(fileInfo.fileId);
await message.reply({
message: fileInfo.info,
buttons: Button.url('📎下载', downloadUrl),
message: fileInfo.info + `\n<a href="${downloadUrl}">下载</a>`,
});
}
catch (e) {