Layer 220
PrepaidGiveaway
Contains info about a prepaid giveaway.
constructor
prepaidGiveaway#b2539d54 id:long months:int quantity:int date:int = PrepaidGiveaway;
Parameters
| Name | Type | Description |
|---|---|---|
| Id | long | Prepaid giveaway ID. |
| Months | int | Duration in months of each gifted Telegram Premium subscription. |
| Quantity | int | Number of given away Telegram Premium subscriptions. |
| Date | int | Payment date. |
Returns
PrepaidGiveawayGogram Example
// Creating PrepaidGiveaway constructor obj := &tg.PrepaidGiveaway{ Id: int64(0), Months: 0, Quantity: 0, Date: 0, }