Add checkbox for telegram notifications

This commit is contained in:
blankhex committed 2026-10-25 10:01:20 +03:00
1 parent e65d1ac46b
commit d4257e7dab
10 files changed
+74 -15

No files matched your search

+4
View File
@@ -34,6 +34,9 @@ class Meeting:
created_by: int
created_by_name: str
created_at: datetime | None
# Whether the meeting should be announced. Defaults to True so meetings from
# older API responses (which lack the field) are still announced.
has_notification: bool = True
@classmethod
def from_json(cls, data: dict[str, Any]) -> "Meeting":
@@ -46,6 +49,7 @@ class Meeting:
created_by=int(data.get("createdBy", 0) or 0),
created_by_name=str(data.get("createdByName") or ""),
created_at=_parse_rfc3339(data.get("createdAt")),
has_notification=bool(data.get("hasNotification", True)),
)