MadelineProtoDocs/docs/API_docs/constructors/account.authorizationForm.md
2020-06-16 17:50:25 +02:00

1.8 KiB

title: account.authorizationForm description: Telegram Passport authorization form image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png redirect_from: /API_docs/constructors/account_authorizationForm.html

Constructor: account.authorizationForm

Back to constructors index

Telegram Passport authorization form

Attributes:

Name Type Required Description
required_types Array of SecureRequiredType Yes Required Telegram Passport documents
values Array of SecureValue Yes Already submitted Telegram Passport documents
errors Array of SecureValueError Yes Telegram Passport errors
users Array of User Yes Info about the bot to which the form will be submitted
privacy_policy_url string Optional URL of the service's privacy policy

Type: account.AuthorizationForm

Example:

$account.authorizationForm = ['_' => 'account.authorizationForm', 'required_types' => [SecureRequiredType, SecureRequiredType], 'values' => [SecureValue, SecureValue], 'errors' => [SecureValueError, SecureValueError], 'users' => [User, User], 'privacy_policy_url' => 'string'];

Or, if you're into Lua:

account.authorizationForm={_='account.authorizationForm', required_types={SecureRequiredType}, values={SecureValue}, errors={SecureValueError}, users={User}, privacy_policy_url='string'}