PaperParser/paper/models.py

13 lines
285 B
Python
Raw Permalink Normal View History

2024-01-31 19:37:01 +10:00
from dataclasses import dataclass
from paper.utils.classes import DataclassBase
dataclass(init=False)
class Message(DataclassBase):
text: str = ''
images: None | list[str] = None
force_document: bool = False
def exists(self):
return self.text or self.images