1
0
libpurple-to-markdown/libpurple_to_markdown/data.py

15 lines
307 B
Python
Raw Normal View History

import dataclasses
import datetime
@dataclasses.dataclass(frozen=True, order=True)
class Message:
sent_at: datetime.datetime
sender: str
text: str
def __post_init__(self):
assert self.sent_at is not None
assert self.sender is not None
assert self.text is not None