libtd-ktx / kotlinx.telegram.coroutines / sendPassportAuthorizationForm
sendPassportAuthorizationForm
suspend fun TelegramFlow.sendPassportAuthorizationForm(autorizationFormId: Int, types: Array<PassportElementType>?): Unit
Suspend function, which sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called after getPassportAuthorizationFormAvailableElements if some previously available elements need to be used.
Parameters
autorizationFormId - Authorization form identifier.
types - Types of Telegram Passport elements chosen by user to complete the authorization
form.