v0.5.0 #87

Merged
profitroll merged 54 commits from dev into master 2025-05-05 01:06:49 +03:00
Showing only changes of commit c06d90b7ce - Show all commits

View File

@@ -59,9 +59,9 @@ class Message:
self.channels.extend(Channel(channel) for channel in data["channel"])
self.id: str = data["id"]
self.active: bool = data["act"]
self.head: str = data["head"]
self.lead: str = data["lead"]
self.text: str = data["text"]
self.head: str = "" if "head" not in data else data["head"]
self.lead: str = "" if "lead" not in data else data["lead"]
self.text: str = "" if "text" not in data else data["text"]
self.company: Union[str, None] = data.get("company")
self.category: Union[str, None] = data.get("category")
self.priority: Union[int, None] = data.get("priority")