Skip to main content

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​

NameTypeRequiredDescription
PhoneNumberstringyesPhone number where we were supposed to receive the code
PhoneCodeHashstringyesThe phone code hash obtained from auth.sendCode
MncstringyesMNC of the current network operator.

Returns​

bool

Possible errors​

CodeTypeDescription
400PHONE_NUMBER_INVALIDThe phone number is invalid.

References​