View Source ExTDLib.Object.PremiumGiftCodeInfo (ExTDLib v0.0.4)

Contains information about a Telegram Premium gift code.

NameTypeDescription
creator_idMessageSenderIdentifier of a chat or a user that created the gift code.
creation_datenumberPoint in time (Unix timestamp) when the code was created.
is_from_giveawayboolTrue, if the gift code was created for a giveaway.
giveaway_message_idstringIdentifier of the corresponding giveaway message in the creator_id chat; can be 0 or an identifier of a deleted message.
month_countnumberNumber of month the Telegram Premium subscription will be active after code activation.
user_idstringIdentifier of a user for which the code was created; 0 if none.
use_datenumberPoint in time (Unix timestamp) when the code was activated; 0 if none.

More details on telegram's documentation.