messages

@Contract(pure = true)
open fun messages(thread: Thread): MessageHandler

Returns a handler for interacting with the messages in the given thread.

Return

The handler for interacting with the messages

Parameters

thread

The thread to get the messages for


@Contract(pure = true)
abstract fun messages(threadId: String): MessageHandler

Returns a handler for interacting with the messages in the thread with the given id.

Return

The handler for interacting with the messages

Parameters

threadId

The id of the thread to get the messages for