feat(message.py): add b"\n" at end of data from to_bytes()

This commit is contained in:
2025-08-28 15:19:12 +02:00
parent df55e0c5cb
commit fd070b1763

View File

@@ -54,7 +54,7 @@ class Message:
Returns:
bytes: The message as bytes.
"""
return self.to_json().encode("utf-8")
return self.to_json().encode("utf-8") + b"\n"
@classmethod
def from_dict(cls, data: dict[str, Any]) -> Message: