Skip to content

Commit fc4bf17

Browse files
committed
3.3.16
1 parent 636bfba commit fc4bf17

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
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.15] - 2024-08-30
8+
## [3.3.16] - 2024-08-30
99

1010
- Update get messages
1111

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.15"
3+
version = "3.3.16"
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.15"
3+
__version__ = "3.3.16"

telstra/messaging/message.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,9 +726,9 @@ def _validate_get_all_args(
726726
)
727727

728728

729-
if reverse is not None and reverse not in ['true', 'false']:
729+
if reverse is not None and not isinstance(reverse, types.TReverse):
730730
raise exceptions.MessageError(
731-
'the value of "reverse" is not valid, expected "true" or "false", '
731+
'the value of "endTime" is not valid, expected a bool, '
732732
f'received "{reverse}"'
733733
)
734734

@@ -782,6 +782,7 @@ def get_all(
782782
"Accept": "application/json",
783783
"Content-Type": "application/json",
784784
}
785+
785786
messages_get_request = request.Request(
786787
f"{_URL}{querystring.build(limit=limit, offset=offset, filter=filter,starTime=startTime,endTime=endTime,reverse=reverse,direction=direction)}",
787788
headers=headers,

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 = str
20+
TReverse = bool
2121
TDirection = str
2222

2323

0 commit comments

Comments
 (0)