MessagePremiumGiftCode
Object Hierarchy:
Description:
public class MessagePremiumGiftCode :
MessageContent
A Telegram Premium gift code was created for the user
Content:
Properties:
- public int64 amount { get; set construct; }
The paid amount, in the smallest units of the currency; 0 if unknown
- public string code { get; set construct; }
The gift code
- public MessageSender? creator_id { get; set construct; }
Identifier of a chat or a user that created the gift code; may be null
if unknown
- public string cryptocurrency { get; set construct; }
Cryptocurrency used to pay for the gift; may be empty if none or
unknown
- public int64 cryptocurrency_amount { get; set construct; }
The paid amount, in the smallest units of the cryptocurrency; 0 if
unknown
- public string currency { get; set construct; }
Currency for the paid amount; empty if unknown
- public bool is_from_giveaway { get; set construct; }
True, if the gift code was created for a giveaway
- public bool is_unclaimed { get; set construct; }
True, if the winner for the corresponding Telegram Premium
subscription wasn't chosen
- public int32 month_count { get; set construct; }
Number of months the Telegram Premium subscription will be active
after code activation
- public Sticker? sticker { get; set construct; }
A sticker to be shown in the message; may be null if unknown
- public FormattedText text { get; set construct; }
Message added to the gift
Creation methods:
- public MessagePremiumGiftCode (MessageSender? creator_id, FormattedText text, bool is_from_giveaway, bool is_unclaimed, string currency, int64 amount, string cryptocurrency, int64 cryptocurrency_amount, int32 month_count, Sticker? sticker, string code)
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