diff --git a/data/web/corefork.telegram.org/api/giveaway.html b/data/web/corefork.telegram.org/api/giveaway.html new file mode 100644 index 0000000000..534b24527f --- /dev/null +++ b/data/web/corefork.telegram.org/api/giveaway.html @@ -0,0 +1,118 @@ + + +
+ +boost_peer
will receive premium_bot_username, and following the inline keyboard payment flow for giveaways (the final keyboard with the prices will contain buttons with invoice deep links ยป that should be used to make the payment).
Once the payment for the giveaway is made, invoke payments.launchPrepaidGiveaway, passing to peer
the ID of the channel that we selected when paying for the giveaway, to obtain a prepaidGiveaway constructor in premium.boostsStatus.prepaid_giveaways
, containing info about the prepaid giveaway.
Once the payment for the giveaway is made, invoke premium.getBoostsStatus, passing to peer
the ID of the channel that we selected when paying for the giveaway, to obtain a prepaidGiveaway constructor in premium.boostsStatus.prepaid_giveaways
, containing info about the prepaid giveaway.
To actually launch the giveaway, invoke payments.launchPrepaidGiveaway, passing prepaidGiveaway.id
to giveaway_id
, the ID of the channel to peer
and giveaway settings in purpose
(populated as specified above).
Then: