Link Search Menu Expand Document

Constructor: payments.checkedGiftCode

Back to constructors index

Contains info about a Telegram Premium giftcode link.

Attributes:

NameTypeRequiredDescription
via_giveawayBoolOptionalWhether this giftcode was created by a giveaway.
from_idPeerOptionalThe peer that created the gift code.
giveaway_msg_idintOptionalMessage ID of the giveaway in the channel specified in from_id.
to_idlongOptionalThe destination user of the gift.
dateintYesCreation date of the gift code.
monthsintYesDuration in months of the gifted Telegram Premium subscription.
used_dateintOptionalWhen was the giftcode imported, if it was imported.
chatsArray of ChatYesMentioned chats
usersArray of UserYesMentioned 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]];