invoke

suspend operator fun invoke(conversationId: <Error class: unknown class>, messageId: String, buttonId: String): SendButtonActionMessageUseCase.Result

Use case for sending a button action message, this means pressing a button in a MessageContent.Composite. Sends a button action message.

Return

Result.Success if the message was sent successfully, Result.Failure otherwise.

Parameters

conversationId

The conversation id.

messageId

The id of the message that contains the button.

buttonId

The id of the button.