auth.sendCode

Send the verification code for login

auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode;
auth.sentCodeSuccess#2390fe44 authorization:auth.Authorization = auth.SentCode;
auth.sentCodePaymentRequired#d7a2fcf9 store_product:string phone_code_hash:string support_email_address:string support_email_subject:string = auth.SentCode;
---functions---
auth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode;

Parameters

Name Type Description
phone_number string Phone number in international format
api_id int Application identifier (see App configuration)
api_hash string Application secret hash (see App configuration)
settings CodeSettings Settings for the code type to send

Result

auth.SentCode

Only users can use this method

This method can be invoked over an