Raw.payments.CheckedGiftCode
Contains info about a telegram premium giftcode link.
payments.checkedGiftCode#284a1096 flags:# via_giveaway:flags.2?true from_id:flags.4?Peer giveaway_msg_id:flags.3?int to_id:flags.0?long date:int months:int used_date:flags.1?int chats:Vector<Chat> users:Vector<User> = payments.CheckedGiftCode;
export namespace Raw {
export namespace payments {
export class CheckedGiftCode {
constructor(params: {
viaGiveaway?: boolean;
fromId?: Raw.TypePeer;
giveawayMsgId?: number;
toId?: bigint;
date: number;
months: number;
usedDate?: number;
chats: Array<Raw.TypeChat>;
users: Array<Raw.TypeUser>;
}) {}
}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x284a1096
Property
viaGiveaway
: boolean or undefinedWhether this giftcode was created by a giveaway.
fromId
: Raw.TypePeer or undefinedThe peer that created the gift code.
giveawayMsgId
: number or undefinedMessage id of the giveaway in the channel specified in fromId.
toId
: bigint or undefinedThe destination user of the gift.
date
: numberCreation date of the gift code.
months
: numberDuration in months of the gifted telegram premium subscription.
usedDate
: number or undefinedWhen was the giftcode imported, if it was imported.
chats
: Array of Raw.TypeChatMentioned chats
users
: Array of Raw.TypeUserMentioned users