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 bool is_premium { get; set construct; }
True, if the gift can be bought only by Telegram Premium subscribers
- 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 next_send_date { get; set construct; }
Point in time (Unix timestamp) when the gift can be sent next time by
the current user; can be 0 or a date in the past. If the date is in the future, then call
Client.can_send_gift to get the reason, why the gift can't be sent now
- public GiftPurchaseLimits? overall_limits { get; set construct; }
Number of times the gift can be purchased all users; may be null if
not limited
- public int64 publisher_chat_id { get; set construct; }
Identifier of the chat that published the gift; 0 if none
- 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 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
- public GiftPurchaseLimits? user_limits { get; set construct; }
Number of times the gift can be purchased by the current user; may be
null if not limited
Creation methods:
- public Gift (int64 id_, int64 publisher_chat_id, Sticker sticker, int64 star_count, int64 default_sell_star_count, int64 upgrade_star_count, bool is_for_birthday, bool is_premium, int32 next_send_date, GiftPurchaseLimits? user_limits, GiftPurchaseLimits? overall_limits, 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