reactToMessage

abstract fun reactToMessage(conversation: IRainbowConversation, messageId: String, vararg reaction: String)

Adds one or more reactions to a specific message in a conversation.

Parameters

conversation

The conversation containing the message to react to.

messageId

The message id to which the reactions will be applied.

reaction

One or more reaction strings to add to the message.

Each user is limited by maxNumberOfReactionPerUser for the number of reactions per message.

Example:

reactToMessage(conversation, message, "👍", "😂", "❤️")