ReceivedGift
Object Hierarchy:
Description:
public class ReceivedGift :
Error
Represents a gift received by a user or a chat
Content:
Properties:
- public bool can_be_transferred { get; set construct; }
True, if the gift is an upgraded gift that can be transferred to
another owner; only for the receiver of the gift
- public bool can_be_upgraded { get; set construct; }
True, if the gift is a regular gift that can be upgraded to a unique
gift; only for the receiver of the gift
- public int32 date { get; set construct; }
Point in time (Unix timestamp) when the gift was sent
- public int32 export_date { get; set construct; }
Point in time (Unix timestamp) when the upgraded 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 SentGift gift { get; set construct; }
The gift
- public bool is_pinned { get; set construct; }
True, if the gift is pinned to the top of the chat's profile page
- public bool is_private { get; set construct; }
True, if the sender and gift text are shown only to the gift receiver;
otherwise, everyone are able to see them
- public bool is_saved { get; set construct; }
True, if the gift is displayed on the chat's profile page; only for
the receiver of the gift
- 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 int64 prepaid_upgrade_star_count { get; set construct; }
Number of Telegram Stars that were paid by the sender for the ability
to upgrade 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 int64 sell_star_count { get; set construct; }
Number of Telegram Stars that can be claimed by the receiver instead
of the regular gift; 0 if the gift can't be sold by the current user
- public MessageSender? sender_id { get; set construct; }
Identifier of a user or a chat that sent the gift; may be null if
unknown
- public FormattedText text { get; set construct; }
Message added to the gift
- 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_refunded { get; set construct; }
True, if the gift was refunded and isn't available anymore
Creation methods:
- public ReceivedGift (string received_gift_id, MessageSender? sender_id, FormattedText text, bool is_private, bool is_saved, bool is_pinned, bool can_be_upgraded, bool can_be_transferred, bool was_refunded, int32 date, SentGift gift, int64 sell_star_count, int64 prepaid_upgrade_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