auth.SentCode #
Содержит информацию о сообщении с кодом подтверждения, отправленном по SMS, звонком или через Telegram.¶
Слой 223
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#e0955a3c store_product:string phone_code_hash:string support_email_address:string support_email_subject:string currency:string amount:long = auth.SentCode;
---functions---
auth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode;
auth.resendCode#cae47523 flags:# phone_number:string phone_code_hash:string reason:flags.0?string = auth.SentCode;
auth.resetLoginEmail#7e960193 phone_number:string phone_code_hash:string = auth.SentCode;
auth.checkPaidAuth#56e59f9c phone_number:string phone_code_hash:string form_id:long = auth.SentCode;
account.sendChangePhoneCode#82574ae5 phone_number:string settings:CodeSettings = auth.SentCode;
account.sendConfirmPhoneCode#1b3faa88 hash:string settings:CodeSettings = auth.SentCode;
account.sendVerifyPhoneCode#a5a356f9 phone_number:string settings:CodeSettings = auth.SentCode; Конструкторы #
| Конструктор | Описание |
|---|---|
| auth.sentCode | Содержит информацию об отправленном коде подтверждения. |
| auth.sentCodeSuccess | Пользователь успешно авторизовался с помощью токенов будущей авторизации |
| auth.sentCodePaymentRequired | Официальные приложения могут получить этот конструктор: он означает, что из-за высокой стоимости SMS с кодом подтверждения для страны или оператора пользователя для продолжения входа либо регистрации пользователь обязан приобрести подписку Telegram Premium; подробнее см. здесь ». |
Методы #
| Метод | Описание |
|---|---|
| auth.sendCode | Отправить код подтверждения для входа |
| auth.resendCode | Повторно отправить код входа другим способом; тип кода определяется значением, возвращённым предыдущим вызовом auth.sendCode/auth.resendCode: подробнее см. вход. |
| auth.resetLoginEmail | Сбросить почту для входа ». |
| auth.checkPaidAuth | Проверяет состояние платежа за вход. |
| account.sendChangePhoneCode | Подтвердить новый номер телефона для привязки к текущему аккаунту |
| account.sendConfirmPhoneCode | Отправить код подтверждения для отмены удаления аккаунта; подробнее см. здесь » |
| account.sendVerifyPhoneCode | Отправить код подтверждения номера телефона для паспорта Telegram. |