Skip to content

launchPrepaidGiveaway

Function · TDLib 1.8.67 · d1085f9c

Launches a prepaid giveaway

launchPrepaidGiveaway(
  giveaway_id: int64,
  parameters: GiveawayParameters,
  winner_count: int32,
  star_count: int53
) → Ok

giveaway_id

int64

Unique identifier of the prepaid giveaway

parameters

GiveawayParameters

Giveaway parameters

winner_count

int32

The number of users to receive giveaway prize

star_count

int53

The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways