CardMessage
class is used to create a card message for CometChat. It extends the InteractiveMessage
class from CometChat.
Name | Type | Description |
---|---|---|
receiverId | string | The ID of the receiver |
receiverType | string | The type of the receiver |
text | string | The text to be displayed on the card |
cardActions | ButtonElement | The actions to be performed when the card is interacted with |
CardMessage
class:
setImageUrl()
method allows to set the image URL for the card.
CardMessage
: