revert plain text

This commit is contained in:
Ju4tCode 2020-12-03 19:12:46 +08:00 committed by GitHub
parent be244f4538
commit 71c5cdc445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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