Skip to main content

payments.checkedGiftCode

Contains info about a Telegram Premium giftcode link.

type tg.PaymentsCheckedGiftCode struct { /* ... */ }

Fields​

NameTypeRequiredDescription
ViaGiveawaybool—Whether this giftcode was created by a giveaway.
FromIDPeerClass—The peer that created the gift code.
GiveawayMsgIDint—Message ID of the giveaway in the channel specified in from_id.
ToIDint64—The destination user of the gift.
DateintyesCreation date of the gift code.
DaysintyesDuration of the gifted Telegram Premium subscription, in days.
UsedDateint—When was the giftcode imported, if it was imported.
Chats[]ChatClassyesMentioned chats
Users[]UserClassyesMentioned users

Returned by​

References​