Giveaways
Quote a giveaway
Changed onThe price of funding a giveaway at your wholesale terms: amount in currency (and its USD value) for winner_count prize slots. The quote applies the same bounds a create applies, so a quoted giveaway is a creatable one. A gift prize names its gift_id (one gift per winner). usdt_ton answers 422 currency_not_available while USDT funding is not offered (as a campaign does).
get/v1/giveaways/quote
Request
- Base URLhttps://api.mystars.tg
- AuthAPI key in header X-Api-Key
Query parameters
prize_type'stars' | 'premium' | 'gift' required
stars (Stars per winner), premium (Premium months per winner) or gift (one star gift per winner).
prize_quantity_per_winnerinteger required
Stars per winner (50–1,000,000), Premium months per winner (3, 6 or 12 today), or 1 for a gift — the bounds of CreateGiveawayRequest, with the same 400 refusals.
winner_countinteger required
currency'ton' | 'usdt_ton'
gift_idstring
The star gift, for prize_type=gift.
Response
The quote.
Changes
- info
endpoint added
- info