send

abstract suspend fun send(messageSerial: String, name: String, type: MessageReactionType? = null, count: Int? = null)

Sends a reaction to a specific message.

Parameters

messageSerial

The unique serial identifier of the message to which the reaction should be added.

name

The name of the reaction, such as an emoji or predefined reaction identifier.

type

The type of the reaction behavior, represented by MessageReactionType. If not specified, the default type configured in the room's MessageOptions.defaultMessageReactionType will be used.

count

The number of reactions to apply (for MessageReactionType.Multiple only). Defaults to 1.