Skip to content

checkAuthCode

Sahri Riza Umami edited this page Sep 10, 2017 · 3 revisions

Checks authentication code.
Works only when getAuthState returns authStateWaitCode.
Returns authStateWaitPassword or authStateOk on success

checkAuthCode(code, first_name, last_name)
Field Type Description
code string Verification code from SMS, Telegram message, phone call or flash call
first_name string User first name, if user is yet not registered, 1-255 characters
last_name string Optional user last name, if user is yet not registered, 0-255 characters

Frequently Asked Questions
The Functions

Clone this wiki locally