Skip to main content

payments.checkedGiftCode

Contains info about a Telegram Premium giftcode link.

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

Fields

NameTypeRequiredDescription
ViaGiveawayboolWhether this giftcode was created by a giveaway.
FromIDPeerClassThe peer that created the gift code.
GiveawayMsgIDintMessage ID of the giveaway in the channel specified in from_id.
ToIDint64The destination user of the gift.
DateintyesCreation date of the gift code.
DaysintyesDuration of the gifted Telegram Premium subscription, in days.
UsedDateintWhen was the giftcode imported, if it was imported.
Chats[]ChatClassyesMentioned chats
Users[]UserClassyesMentioned users

Returned by

References