Gift
Object Hierarchy:
Description:
public class Gift :
Error
Describes a gift that can be sent to another user or channel chat
Content:
Properties:
- public int64 default_sell_star_count { get; set construct; }
Number of Telegram Stars that can be claimed by the receiver instead
of the regular gift by default. If the gift was paid with just bought Telegram Stars, then full value can be claimed
- public int32 first_send_date { get; set construct; }
Point in time (Unix timestamp) when the gift was send for the first
time; for sold out gifts only
- public int64 id_ { get; set construct; }
Unique identifier of the gift
- public bool is_for_birthday { get; set construct; }
True, if the gift is a birthday gift
- public int32 last_send_date { get; set construct; }
Point in time (Unix timestamp) when the gift was send for the last
time; for sold out gifts only
- public int32 remaining_count { get; set construct; }
Number of remaining times the gift can be purchased; 0 if not limited
or the gift was sold out
- public int64 star_count { get; set construct; }
Number of Telegram Stars that must be paid for the gift
- public Sticker sticker { get; set construct; }
The sticker representing the gift
- public int32 total_count { get; set construct; }
Number of total times the gift can be purchased; 0 if not limited
- public int64 upgrade_star_count { get; set construct; }
Number of Telegram Stars that must be paid to upgrade the gift; 0 if
upgrade isn't possible
Creation methods:
- public Gift (int64 id_, Sticker sticker, int64 star_count, int64 default_sell_star_count, int64 upgrade_star_count, bool is_for_birthday, int32 remaining_count, int32 total_count, int32 first_send_date, int32 last_send_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