mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2025-01-09 17:33:47 +00:00
Add back doc strings for Message attributes
This commit is contained in:
parent
04969a0160
commit
5d7fab9cdd
1 changed files with 7 additions and 0 deletions
|
@ -129,12 +129,19 @@ class Attachment:
|
|||
@dataclass
|
||||
class Message:
|
||||
text: str
|
||||
"""Plain text of message, always required, may be an empty string"""
|
||||
sender: str
|
||||
"""Sender of the message"""
|
||||
participants: list[str]
|
||||
"""List of participants in the message, including the sender"""
|
||||
id: uuid.UUID
|
||||
"""ID of the message, will be randomly generated if not provided"""
|
||||
_raw: dict | None = None
|
||||
"""Internal property representing the original raw message, may be None"""
|
||||
_compressed: bool = True
|
||||
"""Internal property representing whether the message should be compressed"""
|
||||
xml: str | None = None
|
||||
"""XML portion of message, may be None"""
|
||||
|
||||
@staticmethod
|
||||
def from_raw(message: bytes, sender: str | None = None) -> "Message":
|
||||
|
|
Loading…
Reference in a new issue