submitForm

fun submitForm(form: Form, handler: CompletionHandler?)

Submits the form message received from the bot.

Since

4.14.0

Parameters

form

The form to be submitted. The answers of the form should be set to the FormField.temporaryAnswer before calling this method.

handler

A callback handler that indicates whether the request succeeded or failed.


fun submitForm(formKey: String, answers: Map<String, String>, handler: CompletionHandler?)

Deprecated

Use submitForm(Form, CompletionHandler) instead.

Replace with

submitForm(Form, CompletionHandler)

Submits the form message received from the bot.

Since

4.12.2

Parameters

formKey

Unique key of the form to be submitted.

answers

A String to String map consisting of form field keys and answers in key:value pairs.

handler

A callback handler that indicates whether the request succeeded or failed.