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.

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
auth.sendSms#da9f3e8 phone_number:string phone_code_hash:string = Bool;

Parameters

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

Result

Bool

Return errors

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