PremiumGiftCodeInfo
Object Hierarchy:
Description:
public class PremiumGiftCodeInfo :
Error
Contains information about a Telegram Premium gift code
Content:
Properties:
- public int32 creation_date { get; set construct; }
Point in time (Unix timestamp) when the code was created
- public MessageSender? creator_id { get; set construct; }
Identifier of a chat or a user that 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
- public int64 giveaway_message_id { get; set construct; }
Identifier of the corresponding giveaway message in the creator_id
chat; can be 0 or an identifier of a deleted message
- public bool is_from_giveaway { get; set construct; }
True, if the gift code was created for a giveaway
- public int32 month_count { get; set construct; }
Number of months the Telegram Premium subscription will be active
after code activation
- public int32 use_date { get; set construct; }
Point in time (Unix timestamp) when the code was activated; 0 if none
- public int64 user_id { get; set construct; }
Identifier of a user for which the code was created; 0 if none
Creation methods:
- public PremiumGiftCodeInfo (MessageSender? creator_id, int32 creation_date, bool is_from_giveaway, int64 giveaway_message_id, int32 month_count, int64 user_id, int32 use_date)
Inherited Members:
All known members inherited from class TDLib.Error
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref