auth.sendSms

Forces sending an SMS message to the specified phone number. Use this method if auth.sentAppCode was returned as a response to auth.sendCode, but the user can't reach the device with Telegram.

{scheme}

Parameters

Name Type Description
phone_number string Phone number in international format
phone_code_hash string SMS-message ID

Result

Bool

Possible errors

Code Type Description
400 PHONE_NUMBER_INVALID Invalid phone number
400 PHONE_CODE_HASH_EMPTY phone_code_hash was not sent
400 PHONE_CODE_EXPIRED SMS expired