TDLib v0.0.2 TDLib.Method.CheckAuthenticationCode View Source

Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode. Returns object_ptr.

NameTypeDescription
codestringThe verification code received via SMS, Telegram message, phone call, or flash call.
first_namestringIf the user is not yet registered, the first name of the user; 1-255 characters.
last_namestringIf the user is not yet registered; the last name of the user; optional; 0-255 characters.

More details on telegram’s documentation.