send


Description:

public async Chat send (ArrayList<Message> messages, Cancellable? cancellable = null) throws Error

Sends messages to the chat API.

Takes messages array as argument and resets all state when called. This method replaces the old exec_chat() method and has its own complete implementation.

Parameters:

messages

The messages array to send

cancellable

Optional cancellation token

Returns:

The Response from executing the chat call