当消息长度超过 ntfy 默认消息大小限制(4KB) 时,消息会自动转为 .txt 附件发送。如果未正确配置附件缓存目录或附件大小限制,会触发 invalid request: attachments not allowed 错误。
{'code': 40014, 'http': 400, 'error': 'invalid request: attachments not allowed', 'link': 'https://ntfy.sh/docs/config/#attachments'}
目前还没有找到解除4K大小限制的方法,如果有的朋友,欢迎留言。