13 lines
285 B
Python
13 lines
285 B
Python
|
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
|