auth.reportMissingCode
Official apps only, reports that the SMS authentication code wasn't delivered.
func (c *Client) AuthReportMissingCode(ctx context.Context, request *AuthReportMissingCodeRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AuthReportMissingCode(ctx, &tg.AuthReportMissingCodeRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
PhoneNumber | string | yes | Phone number where we were supposed to receive the code |
PhoneCodeHash | string | yes | The phone code hash obtained from auth.sendCode |
Mnc | string | yes | MNC of the current network operator. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PHONE_NUMBER_INVALID | The phone number is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
auth.reportMissingCode#cb9deff6