You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: messages/src/vonage_messages/models/mms.py
+26-26Lines changed: 26 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -147,32 +147,6 @@ class MmsFile(BaseMms):
147
147
message_type: MessageType=MessageType.FILE
148
148
149
149
150
-
classMmsContent(BaseMms):
151
-
"""Model for an MMS message with content that can be of various types.
152
-
153
-
Args:
154
-
content (list[MmsContentItem]): A list of content items for the message (images, audio, video, files, or vCards).
155
-
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
156
-
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
157
-
ttl (int, Optional): The duration in seconds for which the message is valid.
158
-
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
159
-
client_ref (str, Optional): An optional client reference.
160
-
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
161
-
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
162
-
"""
163
-
164
-
content: list[
165
-
Union[
166
-
MmsContentItemImage,
167
-
MmsContentItemAudio,
168
-
MmsContentItemVideo,
169
-
MmsContentItemFile,
170
-
MmsContentItemVcard,
171
-
]
172
-
]
173
-
message_type: MessageType=MessageType.CONTENT
174
-
175
-
176
150
classMmsContentItemImage(MmsResource):
177
151
"""Model for an image content item in an MMS Content message.
178
152
@@ -234,3 +208,29 @@ class MmsContentItemVcard(MmsResource):
"""Model for an MMS message with content that can be of various types.
215
+
216
+
Args:
217
+
content (list[MmsContentItem]): A list of content items for the message (images, audio, video, files, or vCards).
218
+
to (PhoneNumber): The recipient's phone number in E.164 format. Don't use a leading plus sign.
219
+
from_ (Union[PhoneNumber, str]): The sender's phone number in E.164 format. Don't use a leading plus sign.
220
+
ttl (int, Optional): The duration in seconds for which the message is valid.
221
+
trusted_recipient (bool, Optional): Whether the recipient is a trusted recipient. Setting this parameter to true overrides, on a per-message basis, any protections set up via Fraud Defender. Defaults to false.
222
+
client_ref (str, Optional): An optional client reference.
223
+
webhook_url (str, Optional): The URL to which Status Webhook messages will be sent for this particular message.
224
+
webhook_version (WebhookVersion, Optional): Which version of the Messages API will be used to send Status Webhook messages for this particular message.
0 commit comments