submitForm

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

Deprecated (with error)

As of 4.19.0, replaced with submitMessageForm(CompletionHandler).

Replace with

submitMessageForm(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.


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

Deprecated (with error)

As of 4.19.0, replaced with submitMessageForm(CompletionHandler).

Replace with

submitMessageForm(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.