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
| Name | Type | Required | Description |
|---|---|---|---|
PhoneNumber | string | yes | Phone number |
PhoneCodeHash | string | yes | The phone code hash obtained from auth.sendCode |
FormID | int64 | yes | The payment form ID passed to payments.sendPaymentForm. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PHONE_NUMBER_INVALID | The phone number is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
auth.checkPaidAuth#56e59f9c