Campaigns

Check delivery capacity

Changed on

How fast a campaign of recipients would be delivered right now: active senders, your remaining daily allowance, your backlog of paid but undelivered recipients, and an ETA in seconds (null when it cannot be estimated). type=stars and type=premium answer the OrderCapacity form; type=star_gift answers the GiftCapacity form (gift senders and your gift recipients per day) and 422 product_not_available where gift campaigns are not offered. A missing or unknown type, or a recipients that is not a plain decimal integer from 0 to 10,000, answers 400.

get/v1/capacity

Request

  • Base URL
    https://api.mystars.tg
  • Auth
    API key in header X-Api-Key

Query parameters

type'stars' | 'premium' | 'star_gift' required

What every recipient receives: stars (quantity Stars), premium (months of Premium) or star_gift (one Telegram star gift, gift_id).

recipientsinteger

The size of the campaign you are planning.

Response

Current capacity for the product.

OR

Changes