Skip to content

Commit 5b08b01

Browse files
committed
change payload
1 parent 3650a72 commit 5b08b01

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

messages/src/vonage_messages/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def send(
5252
m.model_dump(by_alias=True, exclude_none=True) or m for m in failover
5353
]
5454
body = {
55-
'message': body,
55+
**body,
5656
'failover': failover_body,
5757
}
5858

messages/src/vonage_messages/models/rcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class BaseRcs(BaseMessage):
3030
"""
3131

3232
to: PhoneNumber
33-
from_: str = Field(..., serialization_alias='from', pattern='^[a-zA-Z0-9]+$')
33+
from_: str = Field(..., serialization_alias='from', pattern='^[a-zA-Z0-9-_]+$')
3434
ttl: Optional[int] = Field(None, ge=300, le=259200)
3535
channel: ChannelType = ChannelType.RCS
3636

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.1.4dev2'
1+
__version__ = '1.1.4'

0 commit comments

Comments
 (0)