Skip to content

Instantly share code, notes, and snippets.


JcMinarro/SentMessage.kt Secret

Created May 13, 2020
What would you like to do?
val newMessage = Message().apply { text = "It's the message we will send" }
channelController.sendMessage(newMessage).enqueue {
when (it.isSuccess) {
true -> {
// The message was sent, and we have all extra data on the message that return data() method
val sentMessage =
false -> {
// There was an error sending the message, you can check it on the error() method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.