User Message
Object representing a user message.
Properties
All MessageMetaArrays of the message.
The apple critical alert options of the message.
The ChannelType of the channel this message belongs to.
The channel URL of the channel this message belongs to.
The custom type of the message.
The error code of them message if the sendingStatus is SendingStatus.FAILED.
Extra data for this BaseMessage. This is a customer-only field. It is a value used only locally, supports only memory cache, and is not stored in the database. If the message IDs are the same but the message instances are different, the extras values may not be the same. BaseMessage.extras is not shared between instances.
Whether this message is from FeedChannel.
Whether this message is from GroupChannel.
Whether this message is from OpenChannel.
Whether the message was sent from an operator.
Determines whether the current message is a replied message and also a message was replied to the channel.
Whether the message is resendable.
The mentioned message template of the message.
The mentioned user ids of the message.
The mentioned users of the message.
The mention type. Refer to MentionType.
UserMessageCreateParams object that used for sending this message It's not null when sendingStatus is SendingStatus.PENDING or SendingStatus.FAILED If else, it will return null
MessageForm that allow users to input their information or opinions
The message review history of the message. It only exists when the message was reviewed.
My feedback of the message. Not null, if its FeedbackStatus is FeedbackStatus.SUBMITTED. Null, if its FeedbackStatus is FeedbackStatus.NOT_APPLICABLE or FeedbackStatus.NO_FEEDBACK.
My feedback status of the message.
This value is used internally for analyzing Sendbird Notification service data.
The message status of the notification message. This message status will be changed only if the channel is a FeedChannel.
Notification priority This value can be set when the notification message is sent and default value is NORMAL
The OGMetaData of the message. Might be null if
The parent message of this message. Only NonNull
if this message is a reply message. It does not contain all properties of the parent message.
Only contains:
The parent message's ID if this is a reply message.
The scheduled info of the message if this is a scheduled message
The Sender of the message. If SendbirdChat.Options.useMemberInfoInMessage is set true
and this message belongs to a GroupChannel (not a super group channel), the sender information, such as nickname and profile url, is returned as the same with the GroupChannel.members. Otherwise, the sender information will be returned as the value of the message creation time.
The sending status of the message.
The suggested replies of the message.
The thread info of the message.
The translated messages (key-value map) for the language codes in key. The messages that have been sent with translation option (refer to BaseChannel.sendUserMessage) will have this map.
The list of target translation languages with the language codes. The messages that have been sent or scheduled with translation option (refer to BaseChannel.sendUserMessage) will have this list.
Functions
When parent message is updated, you can update the child message's parent message through this method If you use MessageCollection, messages in the collection are automatically updated, so don't need to call it
When you get updated polls from GroupChannel.getPollChangeLogsSinceToken or GroupChannel.getPollChangeLogsSinceTimestamp, you can update the user message's poll through this function If you use MessageCollection, messages in the collection are automatically updated, so don't need to call it
Applies ReactionEvent
to message.
Applies ThreadInfoUpdateEvent to a message.
Deletes the feedback for the message. The feedback can be deleted only when the FeedbackStatus is FeedbackStatus.SUBMITTED.
Returns MessageMetaArray list which is filtered by given metaArrayKeys.
Retrieves the threaded replies of the current message depending on the timestamp. If the current message doesn’t have replies, the result is an empty list. The result is passed to handler
as list
.
Serializes the UserMessage
, FileMessage
or AdminMessage
instance. This byte array can be stored in the database in your application. The instance can be restored by buildFromSerializedData.
Submits the feedback for the message. The feedback can be submitted only when the FeedbackStatus is FeedbackStatus.NO_FEEDBACK.
Submits the form message received from the bot.
Submits the form message received from the bot. The answers of the message form should be set to the MessageFormItem.draftValues before calling this method.
Updates the feedback for the message. The feedback can be updated only when the FeedbackStatus is FeedbackStatus.SUBMITTED.