danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.76k stars 619 forks source link

phoneLogin param? #1431

Closed xiaoweiss closed 8 months ago

xiaoweiss commented 8 months ago

When I call phoneLogin, how should I set the type to auth.sentCodeTypeSms? The sms_type parameter above does not have a very detailed explanation of the value passed.

xiaoweiss commented 8 months ago

{ [""]=> string(13) "auth.sentCode" ["type"]=> array(2) { [""]=> string(20) "auth.sentCodeTypeApp" ["length"]=> int(5) } ["phone_code_hash"]=> string(18) "****" }

xiaoweiss commented 8 months ago

This is the return value. How should I modify this type?

danog commented 8 months ago

SMS codes cannot be received from apps without safetynet.