Skip to content

Commit 636bfba

Browse files
committed
3.3.15
1 parent b9b0ae4 commit 636bfba

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [3.3.14] - 2024-08-30
8+
## [3.3.15] - 2024-08-30
99

1010
- Update get messages
1111

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ following arguments:
507507
- `filter`: Filter your Virtual Numbers by tag or by number.
508508
- `startTime`: Use ISO format, e.g. "2024-01-24T15:39:00Z".
509509
- `endTime`: Use ISO format, e.g. "2024-01-24T16:39:00Z".
510-
- `reverse`: If set to true the results will be returned in reverse order.
510+
- `reverse`: If set to true the results will be returned in reverse order. The default value is false.
511511
- `direction`: Filter your messages by direction: outgoing or incoming.
512512

513513
Raises `telstra.messaging.exceptions.MessageError` if anything goes wrong.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "telstra.messaging"
3-
version = "3.3.14"
3+
version = "3.3.15"
44
readme = "README.md"
55
description = "SDK for the Telstra Messaging API V3 - Beta"
66
license = "Apache-2.0"

telstra/messaging/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Messaging."""
22

3-
__version__ = "3.3.14"
3+
__version__ = "3.3.15"

telstra/messaging/message.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,9 +725,10 @@ def _validate_get_all_args(
725725
f'received "{endTime}"'
726726
)
727727

728-
if reverse is not None and not isinstance(reverse, types.TReverse):
728+
729+
if reverse is not None and reverse not in ['true', 'false']:
729730
raise exceptions.MessageError(
730-
'the value of "reverse" is not valid, expected a bool, '
731+
'the value of "reverse" is not valid, expected "true" or "false", '
731732
f'received "{reverse}"'
732733
)
733734

telstra/messaging/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
TFilter = str
1818
TStartTime = str
1919
TEndTime = str
20-
TReverse = bool
20+
TReverse = str
2121
TDirection = str
2222

2323

0 commit comments

Comments
 (0)