revert plain text

This commit is contained in:
Ju4tCode
2020-12-03 19:12:46 +08:00
committed by GitHub
parent be244f4538
commit 71c5cdc445

View File

@ -453,4 +453,4 @@ class BaseMessage(list, abc.ABC):
return f"{x} {y}" if y.type == "text" else x return f"{x} {y}" if y.type == "text" else x
plain_text = reduce(_concat, self, "") plain_text = reduce(_concat, self, "")
return plain_text.strip() return plain_text[1:] if plain_text else plain_text