telegram api method · layer 229 · #8e39261e

auth.requestFirebaseSms

usable by users

Request an SMS code via Firebase.

definition

auth.requestFirebaseSms#8e39261e flags:# phone_number:string phone_code_hash:string safety_net_token:flags.0?string play_integrity_token:flags.2?string ios_push_secret:flags.1?string = Bool;

parameters

nametypedescription
flags#Flags, see TL conditional fields
phone_numberstringPhone number
phone_code_hashstringPhone code hash returned by auth.sendCode
safety_net_tokenflags.0?stringOn Android, a JWS object obtained as described in the auth documentation »
play_integrity_tokenflags.2?stringOn Android, an object obtained as described in the auth documentation »
ios_push_secretflags.1?stringSecret token received via an apple push notification

returns

Bool

errors (3)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400PHONE_CODE_EMPTYphone_code is missing.
400PHONE_NUMBER_INVALIDThe phone number is invalid.

history

present in layers 152–229 · constructor id changed 1×

idlayers
#89464b50152–179
#8e39261e180–229