HTTP 400 · Bad Request
PREMIUM_SUB_ACTIVE_UNTIL_X
You already have a premium subscription active until unixtime %v.
HTTP 400
Payments / Stars
When & why it happens
The current account already has an active premium subscription until the supplied unix timestamp — no new purchase is needed.
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "PREMIUM_SUB_ACTIVE_UNTIL_X" {
// handle this error
}
}
Related errors
INVOICE_PAYLOAD_INVALIDThe specified invoice payload is invalid.PAYMENT_PROVIDER_INVALIDThe specified payment provider is invalid.PAYMENT_UNSUPPORTEDThis payment method is not acceptable.PREMIUM_ACCOUNT_REQUIREDA premium account is required to execute this action.PREMIUM_CURRENTLY_UNAVAILABLEPremium is currently unavailable.