mirror of https://github.com/Nofated095/Q2TG.git
fix: 有时候文件下载地址提示格式错误的问题
This commit is contained in:
parent
57191c6207
commit
4a192fcad8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue