FileMessage

Object representing a file.

Properties

Link copied to clipboard
Link copied to clipboard

The apple critical alert options of the message.

Link copied to clipboard

The ChannelType of the channel this message belongs to.

Link copied to clipboard

The channel URL of the channel this message belongs to.

Link copied to clipboard

The creation time of the message in milliseconds.

Link copied to clipboard

The custom type of the message.

Link copied to clipboard

The custom data of the message.

Link copied to clipboard

The error code of them message if the sendingStatus is SendingStatus.FAILED.

Link copied to clipboard

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.

Link copied to clipboard

List of Form that allow users to input their information or opinions

Link copied to clipboard

Whether this message is from FeedChannel.

Link copied to clipboard

Whether this message is from GroupChannel.

Link copied to clipboard

Whether this message is from OpenChannel.

Link copied to clipboard

Whether the message was sent from an operator.

Link copied to clipboard

Determines whether the current message is a replied message and also a message was replied to the channel.

Link copied to clipboard

Whether the message is resendable.

Link copied to clipboard

Checks whether the message is silent or not.

Link copied to clipboard

The mentioned message template of the message.

Link copied to clipboard

The mentioned user ids of the message.

Link copied to clipboard

The mentioned users of the message.

Link copied to clipboard

The mention type. Refer to MentionType.

Link copied to clipboard
open override var message: String

This will be set to the name of the file of the message.

Link copied to clipboard

FileMessageCreateParams object that used for sending this message. It's not null when sendingStatus is SendingStatus.PENDING or SendingStatus.FAILED or SendingStatus.CANCELED If else, it will return null

Link copied to clipboard

MessageForm that allow users to input their information or opinions

Link copied to clipboard

The ID of the message.

Link copied to clipboard
Link copied to clipboard

My feedback status of the message.

Link copied to clipboard

Represents the name of the file.

Link copied to clipboard
Link copied to clipboard

This value is used internally for analyzing Sendbird Notification service data.

Link copied to clipboard

The message status of the notification message. This message status will be changed only if the channel is a FeedChannel.

Link copied to clipboard

Notification priority This value can be set when the notification message is sent and default value is NORMAL

Link copied to clipboard

The OGMetaData of the message. Might be null if

Link copied to clipboard

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:

Link copied to clipboard

The parent message's ID if this is a reply message.

Link copied to clipboard

The plain file URL, which does not contain SendbirdChat.eKey as a parameter. If the file encryption feature is enabled, accessing this plainUrl will be denied.

Link copied to clipboard

The reactions on the message.

Link copied to clipboard
open override val requestId: String

The request ID of the message.

Link copied to clipboard

The scheduled info of the message if this is a scheduled message

Link copied to clipboard
open val sender: Sender?

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.

Link copied to clipboard

The sending status of the message.

Link copied to clipboard
val size: Int

Represents the size of the file.

Link copied to clipboard

The suggested replies of the message.

Link copied to clipboard

The thread info of the message.

Link copied to clipboard

Represents the thumbnail information of image file. To make thumbnail of image when you send it, please refer to BaseChannel.sendFileMessage.

Link copied to clipboard

Represents the type of the file. MIME preferred.

Link copied to clipboard

The updated time of the message in milliseconds.

Link copied to clipboard
val url: String

The file URL. If the file encryption feature is enabled, this will have SendbirdChat.eKey combined with the plainUrl so the file can be accessed. For caching the file, it is recommended to use plainUrl as the key of the file cache.

Functions

Link copied to clipboard

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

Link copied to clipboard

Applies ReactionEvent to message.

Link copied to clipboard

Applies ThreadInfoUpdateEvent to a message.

Link copied to clipboard

Deletes the feedback for the message. The feedback can be deleted only when the FeedbackStatus is FeedbackStatus.SUBMITTED.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Returns MessageMetaArray list which is filtered by given metaArrayKeys.

Link copied to clipboard

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.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

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.

Link copied to clipboard
fun submitFeedback(feedbackRating: FeedbackRating, feedbackComment: String? = null, handler: FeedbackHandler?)

Submits the feedback for the message. The feedback can be submitted only when the FeedbackStatus is FeedbackStatus.NO_FEEDBACK.

Link copied to clipboard
fun submitForm(form: Form, handler: CompletionHandler?)
fun submitForm(formKey: String, answers: Map<String, String>, handler: CompletionHandler?)

Submits the form message received from the bot.

Link copied to clipboard

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.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun updateFeedback(feedbackRating: FeedbackRating, feedbackComment: String? = null, handler: FeedbackHandler?)

Updates the feedback for the message. The feedback can be updated only when the FeedbackStatus is FeedbackStatus.SUBMITTED.