From 71c5cdc445de4741dee80daf743b2df8b3b4170a Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Thu, 3 Dec 2020 19:12:46 +0800 Subject: [PATCH] :rewind: revert plain text --- nonebot/adapters/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot/adapters/__init__.py b/nonebot/adapters/__init__.py index 4d1fa60c..692c691f 100644 --- a/nonebot/adapters/__init__.py +++ b/nonebot/adapters/__init__.py @@ -453,4 +453,4 @@ class BaseMessage(list, abc.ABC): return f"{x} {y}" if y.type == "text" else x plain_text = reduce(_concat, self, "") - return plain_text.strip() + return plain_text[1:] if plain_text else plain_text