Constructor: payments.checkedGiftCode
Contains info about a Telegram Premium giftcode link.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
via_giveaway | Bool | Optional | Whether this giftcode was created by a giveaway. |
from_id | Peer | Optional | The peer that created the gift code. |
giveaway_msg_id | int | Optional | Message ID of the giveaway in the channel specified in from_id . |
to_id | long | Optional | The destination user of the gift. |
date | int | Yes | Creation date of the gift code. |
months | int | Yes | Duration in months of the gifted Telegram Premium subscription. |
used_date | int | Optional | When was the giftcode imported, if it was imported. |
chats | Array of Chat | Yes | Mentioned chats |
users | Array of User | Yes | Mentioned users |
Type: payments.CheckedGiftCode
Example:
$payments_checkedGiftCode = ['_' => 'payments.checkedGiftCode', 'via_giveaway' => Bool, 'from_id' => Peer, 'giveaway_msg_id' => int, 'to_id' => long, 'date' => int, 'months' => int, 'used_date' => int, 'chats' => [Chat, Chat], 'users' => [User, User]];