UpgradedGift
Object Hierarchy:
Description:
public class UpgradedGift :
Error
Describes an upgraded gift that can be transferred to another owner or transferred to the TON blockchain as an NFT
Content:
Properties:
- public UpgradedGiftBackdrop backdrop { get; set construct; }
Backdrop of the upgraded gift
- public string gift_address { get; set construct; }
Address of the gift NFT in TON blockchain; may be empty if none.
Append the address to getOption("ton_blockchain_explorer_url") to get a link with information about the address
- public int64 id_ { get; set construct; }
Unique identifier of the gift
- public bool is_premium { get; set construct; }
True, if the original gift could have been bought only by Telegram
Premium subscribers
- public bool is_theme_available { get; set construct; }
True, if the gift can be used to set a theme in a chat
- public int32 max_upgraded_count { get; set construct; }
The maximum number of gifts that can be upgraded from the same gift
- public UpgradedGiftModel model { get; set construct; }
Model of the upgraded gift
- public string name { get; set construct; }
- public int32 number { get; set construct; }
Unique number of the upgraded gift among gifts upgraded from the same
gift
- public UpgradedGiftOriginalDetails? original_details { get; set construct; }
Information about the originally sent gift; may be null if unknown
- public string owner_address { get; set construct; }
Address of the gift NFT owner in TON blockchain; may be empty if none.
Append the address to getOption("ton_blockchain_explorer_url") to get a link with information about the address
- public MessageSender? owner_id { get; set construct; }
Identifier of the user or the chat that owns the upgraded gift; may be
null if none or unknown
- public string owner_name { get; set construct; }
Name of the owner for the case when owner identifier and address
aren't known
- public int64 publisher_chat_id { get; set construct; }
Identifier of the chat that published the gift; 0 if none
- public int64 regular_gift_id { get; set construct; }
Unique identifier of the regular gift from which the gift was
upgraded; may be 0 for short period of time for old gifts from database
- public GiftResaleParameters? resale_parameters { get; set construct; }
Resale parameters of the gift; may be null if resale isn't possible
- public UpgradedGiftSymbol symbol { get; set construct; }
Symbol of the upgraded gift
- public string title { get; set construct; }
The title of the upgraded gift
- public int32 total_upgraded_count { get; set construct; }
Total number of gifts that were upgraded from the same gift
- public int64 used_theme_chat_id { get; set construct; }
Identifier of the chat for which the gift is used to set a theme; 0 if
none or the gift isn't owned by the current user
- public int64 value_amount { get; set construct; }
Estimated value of the gift; in the smallest units of the currency; 0
if unavailable
- public string value_currency { get; set construct; }
ISO 4217 currency code of the currency in which value of the gift is
represented; may be empty if unavailable
Creation methods:
- public UpgradedGift (int64 id_, int64 regular_gift_id, int64 publisher_chat_id, string title, string name, int32 number, int32 total_upgraded_count, int32 max_upgraded_count, bool is_premium, bool is_theme_available, int64 used_theme_chat_id, MessageSender? owner_id, string owner_address, string owner_name, string gift_address, UpgradedGiftModel model, UpgradedGiftSymbol symbol, UpgradedGiftBackdrop backdrop, UpgradedGiftOriginalDetails? original_details, GiftResaleParameters? resale_parameters, string value_currency, int64 value_amount)
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