submitForm

suspend fun BaseMessage.submitForm(form: Form)

Deprecated (with error)

As of 4.17.0, replaced with awaitSubmitMessageForm(MessageForm, CompletionHandler).

Replace with

awaitSubmitMessageForm(CompletionHandler)

Submits the form message received from the bot.

Since

4.15.0

Parameters

form

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