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/rcs.py
+30-3Lines changed: 30 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -263,7 +263,8 @@ class RcsFile(BaseRcs):
263
263
file: RcsResource
264
264
message_type: MessageType=MessageType.FILE
265
265
266
-
classRcsCardContent(BaseModel):
266
+
267
+
classRcsCardBase(BaseModel):
267
268
"""Model for the content of an RCS card.
268
269
269
270
Args:
@@ -295,7 +296,20 @@ class RcsCardContent(BaseModel):
295
296
] =Field(None, min_length=1, max_length=4)
296
297
297
298
298
-
classRcsCard(RcsCardContent, BaseRcs):
299
+
classRcsCardItem(RcsCardBase):
300
+
"""Model for the content of an RCS card.
301
+
302
+
Args:
303
+
title (str): The title of the card.
304
+
text (str): The text of the card.
305
+
media_url (str): The media URL for the card. Can be an image or a video.
306
+
suggestions (List[Union[RcsSuggestionReply, RcsSuggestionActionDial, RcsSuggestionActionViewLocation, RcsSuggestionActionShareLocation, RcsSuggestionActionOpenUrl, RcsSuggestionActionOpenUrlWebview, RcsSuggestionActionCreateCalendarEvent], Optional): A list of suggestions to include on the card. Can include up to 4 suggestions.
307
+
"""
308
+
309
+
media_height: RcsMediaHeight
310
+
311
+
312
+
classRcsCardMessage(RcsCardBase, BaseRcs):
299
313
"""Model for an RCS card message.
300
314
301
315
Args:
@@ -328,7 +342,20 @@ class RcsCarousel(BaseRcs):
328
342
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