Skip to main content

auth.checkPaidAuth

Checks the status of a login payment.

func (c *Client) AuthCheckPaidAuth(ctx context.Context, request *AuthCheckPaidAuthRequest) (AuthSentCodeClass, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.AuthCheckPaidAuth(ctx, &tg.AuthCheckPaidAuthRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // AuthSentCodeClass
return nil
})

Parameters

NameTypeRequiredDescription
PhoneNumberstringyesPhone number
PhoneCodeHashstringyesThe phone code hash obtained from auth.sendCode
FormIDint64yesThe payment form ID passed to payments.sendPaymentForm.

Returns

AuthSentCodeClass

Possible errors

CodeTypeDescription
400PHONE_NUMBER_INVALIDThe phone number is invalid.

References