diff --git a/data/web/corefork.telegram.org/api/giveaways.html b/data/web/corefork.telegram.org/api/giveaways.html index 984f2498c1..dbefd7b23a 100644 --- a/data/web/corefork.telegram.org/api/giveaways.html +++ b/data/web/corefork.telegram.org/api/giveaways.html @@ -4,10 +4,10 @@ Giveaways - + - + @@ -44,7 +44,7 @@
-

Telegram channel administrators may launch giveaways to randomly distribute Telegram Premium subscriptions and other gifts among their followers, in exchange for boosts.

+

Telegram channel and supergroup administrators may launch giveaways to randomly distribute Telegram Premium subscriptions and other gifts among their followers, in exchange for boosts.

This functionality should only be enabled if the giveaway_gifts_purchase_available config value is set to true.

Note that the flow described below can also be used to gift a Premium subscriptions to multiple friends, and is different from the old gift flow, which allowed gifting only one subscription with some extra limitations, not present in this flow.

Note that premium multigift links lead to a page that uses the new gift flow described below.

@@ -89,12 +89,12 @@

First of all, invoke payments.getPremiumGiftCodeOptions to obtain a list of premiumGiftCodeOption constructors, containing a list of giveaway options that may be chosen by the admin, indicating the number and duration of the of Telegram Premium subscriptions that will be gifted in the giveaway, along with their price (amount) in the specified currency (see the constructor page » for more info on these fields).

Once the admin has chosen a specific gift code option, invoke payments.getPaymentForm, passing an inputInvoicePremiumGiftCode, with the chosen premiumGiftCodeOption in option and a purpose containing either:

Then, follow the invoice payment flow as described in the payments documentation ».

@@ -110,15 +110,15 @@ Users may also use this method to simply gift subscriptions to contacts by If the payment was made using the payments.getPaymentForm or payments.assignAppStoreTransaction/payments.assignPlayMarketTransaction payment flows, the giveaway will launch as soon as the payment is complete.

  • -

    Otherwise, if the Premium bot or Fragment flows were used, 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 for the Fragment and bot flows, 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).

    +

    Otherwise, if the Premium bot or Fragment flows were used, once the payment for the giveaway is made, invoke premium.getBoostsStatus, passing to peer the ID of the channel/supergroup 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 for the Fragment and bot flows, invoke payments.launchPrepaidGiveaway, passing prepaidGiveaway.id to giveaway_id, the ID of the channel/supergroup to peer and giveaway settings in purpose (populated as specified above).

  • Finally:

    diff --git a/data/web/corefork.telegram.org/constructor/boost.html b/data/web/corefork.telegram.org/constructor/boost.html index 0795b89660..6f1bf00cdd 100644 --- a/data/web/corefork.telegram.org/constructor/boost.html +++ b/data/web/corefork.telegram.org/constructor/boost.html @@ -74,12 +74,12 @@ gift flags.1?true -Whether this boost was applied because the channel directly gifted a subscription to the user. +Whether this boost was applied because the channel/supergroup directly gifted a subscription to the user. giveaway flags.2?true -Whether this boost was applied because the user was chosen in a giveaway started by the channel. +Whether this boost was applied because the user was chosen in a giveaway started by the channel/supergroup. unclaimed diff --git a/data/web/corefork.telegram.org/constructor/inputStorePaymentPremiumGiftCode.html b/data/web/corefork.telegram.org/constructor/inputStorePaymentPremiumGiftCode.html index 9264c5f962..fc907efb3a 100644 --- a/data/web/corefork.telegram.org/constructor/inputStorePaymentPremiumGiftCode.html +++ b/data/web/corefork.telegram.org/constructor/inputStorePaymentPremiumGiftCode.html @@ -42,7 +42,7 @@

    inputStorePaymentPremiumGiftCode

    -

    Used to gift Telegram Premium subscriptions only to some specific subscribers of a channel or to some of our contacts, see here » for more info on giveaways and gifts.

    +

    Used to gift Telegram Premium subscriptions only to some specific subscribers of a channel/supergroup or to some of our contacts, see here » for more info on giveaways and gifts.