Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions resend/broadcasts/_broadcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,11 @@ class Broadcast(_FromParam):
"""
The date and time the broadcast was sent.
"""
html: Union[str, None]
"""
The HTML content of the broadcast.
"""
text: Union[str, None]
"""
The plain text content of the broadcast.
"""
2 changes: 1 addition & 1 deletion resend/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.16.0"
__version__ = "2.17.0"


def get_version() -> str:
Expand Down
4 changes: 4 additions & 0 deletions tests/broadcasts_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def test_broadcasts_get(self) -> None:
"created_at": "2024-12-01T19:32:22.980Z",
"scheduled_at": None,
"sent_at": None,
"html": "<p>Hello World</p>",
"text": "Hello World",
}
)

Expand All @@ -60,6 +62,8 @@ def test_broadcasts_get(self) -> None:
assert broadcast["created_at"] == "2024-12-01T19:32:22.980Z"
assert broadcast["scheduled_at"] is None
assert broadcast["sent_at"] is None
assert broadcast["html"] == "<p>Hello World</p>"
assert broadcast["text"] == "Hello World"

def test_broadcasts_send(self) -> None:
self.set_mock_json({"id": "49a3999c-0ce1-4ea6-ab68-afcd6dc2e791"})
Expand Down
Loading