Skip to content

checkAuthCode

Sahri Riza Umami edited this page Dec 8, 2016 · 3 revisions

Checks authentication code.

checkAuthCode(code, first_name, last_name)

Works only when authGetState returns authStateWaitCode.
Returns authStateWaitPassword or authStateOk on success.

Option Description
code Verification code from SMS, Telegram message, voice call or flash call.
first_name User first name, if user is yet not registered, 1-255 characters.
last_name Optional user last name, if user is yet not registered, 0-255 characters.

Example

checkAuthCode(1337, 'Elite', 'Haxor')

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally