Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 4.42 KB

SendMessageData.md

File metadata and controls

38 lines (30 loc) · 4.42 KB

SendMessageData

Properties

Name Type Description Notes
userId String Specifies the user ID of the sender.
channelType String Specifies the type of the channel. Either open_channels or group_channels. [optional]
channelUrl String Specifies the URL of the channel to send a message to. [optional]
messageType String Specifies the type of the message as MESG, FILE or ADMM
message String Specifies the content of the message.
customType String Specifies a custom message type which is used for message grouping. The length is limited to 128 characters.<br /><br /> Custom types are also used within Sendbird's Advanced analytics to segment metrics, which enables the sub-classification of data views. [optional]
data String Specifies additional message information such as custom font size, font type or `JSON` formatted string. [optional]
sendPush Boolean Determines whether to send a push notification for the message to the members of the channel (applicable to group channels only). Unlike text and file messages, a push notification for an admin message is not sent by default. (Default: true) [optional]
mentionType String Specifies the mentioning type which indicates the user scope who will get a notification for the message. Acceptable values are users and channel. If set to users, only the specified users with the mentioned_users property below will get notified. If set to channel, all users in the channel will get notified. (Default: users) [optional]
mentionedUserIds List<String> Specifies an array of one or more IDs of the users who will get a notification for the message. [optional]
isSilent Boolean Determines whether to send a message without updating some of the channel properties. If a message is sent in a channel, with this property set to true, the channel's last_message is updated only for the sender while its unread_message_count remains unchanged for all channel members. Also, the message doesn't send a push notification to message receivers. If the message is sent to a hidden channel, the channel still remains hidden. (Default: false)</br></br> Once the value of this property is set, it can't be reverted. [optional]
sortedMetaarray String Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. [optional]
createdAt Integer Specifies the time that the message was sent, in Unix milliseconds format. This property can be used when migrating the messages of other system to Sendbird server. If specified, the server sets the message's creation time as the property value. [optional]
dedupId String Specifies the unique message ID created by other system. In general, this property is used to prevent the same message data from getting inserted when migrating the messages of the other system to Sendbird server. If specified, the server performs a duplicate check using the property value. [optional]
apnsBundleId String Specifies the bundle ID of the client app in order to send a push notification to iOS devices. You can find this in Settings > Chat > Notifications > Push notification services [optional]
sound String Specifies the name of the file that sounds for critical alerts. [optional]
volume BigDecimal Specifies the volume of the critical alert sound. The volume ranges from 0.0 to 1.0, which indicates silent and full volume, respectively. (Default 1.0) [optional]
url String [optional]
_file String [optional]
fileName String [optional]
fileSize BigDecimal [optional]
fileType String [optional]
thumbnails List<String> [optional]
thumbnail1 String [optional]
thumbnail2 String [optional]
thumbnail3 String [optional]