diff --git a/nonebot/adapters/satori/message.py b/nonebot/adapters/satori/message.py index 3a0c5d1..44d8bc3 100644 --- a/nonebot/adapters/satori/message.py +++ b/nonebot/adapters/satori/message.py @@ -223,9 +223,7 @@ def message( data["id"] = mid if forward is not None: data["forward"] = forward - if content: - data["content"] = content - return RenderMessage("message", data) # type: ignore + return RenderMessage("message", data)(content or []) # type: ignore @staticmethod def quote( @@ -236,9 +234,7 @@ def quote( data = {"id": mid} if forward is not None: data["forward"] = forward # type: ignore - if content: - data["content"] = content # type: ignore - return RenderMessage("quote", data) # type: ignore + return RenderMessage("quote", data)(content or []) # type: ignore @staticmethod def author( diff --git a/pyproject.toml b/pyproject.toml index dfff8b1..4900ca7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot-adapter-satori" -version = "0.11.1" +version = "0.11.2" description = "Satori Protocol Adapter for Nonebot2" authors = [ {name = "RF-Tar-Railt",email = "rf_tar_railt@qq.com"},