PremiumGiftCodeInfo¶
Contains information about a Telegram Premium gift code
PremiumGiftCodeInfo(
creator_id: MessageSender,
creation_date: int32,
is_from_giveaway: Bool,
giveaway_message_id: int53,
month_count: int32,
day_count: int32,
user_id: int53,
use_date: int32
) → PremiumGiftCodeInfo
creator_id¶
Identifier of a chat or a user who created the gift code; may be null if unknown. If null and the code is from messagePremiumGiftCode message, then creator_id from the message can be used
creation_date¶
int32
Point in time (Unix timestamp) when the code was created
is_from_giveaway¶
Bool
True, if the gift code was created for a giveaway
giveaway_message_id¶
int53
Identifier of the corresponding giveaway message in the creator_id chat; may be 0 or an identifier of a deleted message
month_count¶
int32
Number of months the Telegram Premium subscription will be active after code activation; 0 if the number of months isn't integer
day_count¶
int32
Number of days the Telegram Premium subscription will be active after code activation
user_id¶
int53
Identifier of a user for which the code was created; 0 if none
use_date¶
int32
Point in time (Unix timestamp) when the code was activated; 0 if none