不知道为什么突然就无法正常获取图片了
以下是日志
关闭文件代理的情况
[W] telegram get file error TypeError: Invalid URL at new URL (node:internal/url:797:36) at Proxy.<anonymous> (/koishi/node_modules/@satorijs/core/lib/index.cjs:846:19) at Object.apply (/koishi/node_modules/@cordisjs/core/lib/index.cjs:417:23) at Proxy.dispatch (/koishi/node_modules/@cordisjs/core/lib/index.cjs:514:27) at dispatch.next (<anonymous>) at Async-from-Sync Iterator.next (<anonymous>) at Proxy.serial (/koishi/node_modules/@cordisjs/core/lib/index.cjs:524:22) at Proxy.file (/koishi/node_modules/@cordisjs/plugin-http/lib/index.cjs:400:33) at Object.apply (/koishi/node_modules/@cordisjs/core/lib/index.cjs:178:40) at Object.apply (/koishi/node_modules/@cordisjs/core/lib/index.cjs:178:40) { code: 'ERR_INVALID_URL', input: '/photos/file_2567.jpg' }
[E] forward Error: Error with request send_group_msg, args: {"group_id":123456789,"message":[{"type":"text","data":{"text":"[tg]\n"}},{"type":"image","data":{"cache":0}}]}, retcode: 1200
at _Internal._get (/koishi/node_modules/koishi-plugin-adapter-onebot/lib/index.js:119:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _Internal.<computed> [as sendGroupMsg] (/koishi/node_modules/koishi-plugin-adapter-onebot/lib/index.js:162:20)
at async OneBotMessageEncoder.flush (/koishi/node_modules/koishi-plugin-adapter-onebot/lib/index.js:763:330)
at async OneBotMessageEncoder.send (/koishi/node_modules/@satorijs/core/lib/index.cjs:756:5)
at async Proxy.sendMessage (/koishi/node_modules/@satorijs/core/lib/index.cjs:486:22)
at async Proxy.<anonymous> (/koishi/node_modules/@myrtus/koishi-plugin-forward/lib/index.js:263:30)
开启文件代理后
[E] forward Error: Error with request send_group_msg, args: {"group_id":000000,"message":[{"type":"text","data":{"text":"[tg]\n"}},{"type":"image","data":{"file":"https://abc.abc/telegram/12345678/photos/file_2566.jpg","cache":0}}]}, retcode: 1200
at _Internal._get (/koishi/node_modules/koishi-plugin-adapter-onebot/lib/index.js:119:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _Internal.<computed> [as sendGroupMsg] (/koishi/node_modules/koishi-plugin-adapter-onebot/lib/index.js:162:20)
at async OneBotMessageEncoder.flush (/koishi/node_modules/koishi-plugin-adapter-onebot/lib/index.js:763:330)
at async OneBotMessageEncoder.send (/koishi/node_modules/@satorijs/core/lib/index.cjs:756:5)
at async Proxy.sendMessage (/koishi/node_modules/@satorijs/core/lib/index.cjs:486:22)
at async Proxy.<anonymous> (/koishi/node_modules/@myrtus/koishi-plugin-forward/lib/index.js:263:30)
我访问这个图片的反代链接显示Internal Server Error
看起来像是koishi无法正常获取图片,我通过
https://api.telegram.org/file/botToken/photos/file_2565.jpg可以正常下载图片
请问这是我的服务器被tg屏蔽了吗?