auth.signIn
Signs in a user with a validated phone number.
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
phone_number | string | はい | Phone number in the international format |
phone_code_hash | string | はい | SMS-message ID, obtained from [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md) |
phone_code | string | いいえ | Valid numerical code from the SMS-message |
email_verification | EmailVerification | いいえ | Email verification code or token |
レスポンス
auth.Authorization
MTProto RPC
- 500 · AUTH_RESTART — Restart the authorization process.
- 400 · PHONE_CODE_EMPTY — phone_code is missing.
- 400 · PHONE_CODE_EXPIRED — The phone code you provided has expired.
- 400 · PHONE_CODE_INVALID — The provided phone code is invalid.
- 406 · PHONE_NUMBER_INVALID — The phone number is invalid.
- 400 · PHONE_NUMBER_UNOCCUPIED — The phone number is not yet being used.
- 500 · SIGN_IN_FAILED — Failure while signing in.
- 406 · UPDATE_APP_TO_LOGIN — Please update your client to login.