MessageUpgradedGift
Object Hierarchy:
Description:
public class MessageUpgradedGift :
MessageContent
An upgraded gift was received or sent by the current user, or the current user was notified about a channel gift
Content:
Properties:
- public bool can_be_transferred { get; set construct; }
True, if the gift can be transferred to another owner; only for the
receiver of the gift
- public int32 export_date { get; set construct; }
Point in time (Unix timestamp) when the gift can be transferred to the
TON blockchain as an NFT; 0 if NFT export isn't possible; only for the receiver of the gift
- public UpgradedGift gift { get; set construct; }
The gift
- public bool is_saved { get; set construct; }
True, if the gift is displayed on the user's or the channel's profile
page; only for the receiver of the gift
- public bool is_upgrade { get; set construct; }
True, if the gift was obtained by upgrading of a previously received
gift; otherwise, this is a transferred or resold gift
- public int64 last_resale_star_count { get; set construct; }
Number of Telegram Stars that were paid by the sender for the gift; 0
if the gift was upgraded or transferred
- public int32 next_resale_date { get; set construct; }
Point in time (Unix timestamp) when the gift can be resold to another
user; 0 if the gift can't be resold; only for the receiver of the gift
- public int32 next_transfer_date { get; set construct; }
Point in time (Unix timestamp) when the gift can be transferred to
another owner; 0 if the gift can be transferred immediately or transfer isn't possible; only for the receiver of the gift
- public string received_gift_id { get; set construct; }
Unique identifier of the received gift for the current user; only for
the receiver of the gift
- public MessageSender? sender_id { get; set construct; }
Sender of the gift; may be null for anonymous gifts
- public int64 transfer_star_count { get; set construct; }
Number of Telegram Stars that must be paid to transfer the upgraded
gift; only for the receiver of the gift
- public bool was_transferred { get; set construct; }
True, if the gift was transferred to another owner; only for the
receiver of the gift
Creation methods:
- public MessageUpgradedGift (UpgradedGift gift, MessageSender? sender_id, string received_gift_id, bool is_upgrade, bool is_saved, bool can_be_transferred, bool was_transferred, int64 last_resale_star_count, int64 transfer_star_count, int32 next_transfer_date, int32 next_resale_date, int32 export_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