MessageGift
Object Hierarchy:
Description:
public class MessageGift :
MessageContent
A regular 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_upgraded { get; set construct; }
True, if the gift can be upgraded to a unique gift; only for the
receiver of the gift
- public Gift gift { get; set construct; }
The gift
- public bool is_private { get; set construct; }
True, if the sender and gift text are shown only to the gift receiver;
otherwise, everyone will be able to see them
- 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 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 receiver
- public MessageSender sender_id { get; set construct; }
Sender of the gift
- public FormattedText text { get; set construct; }
Message added to the gift
- public string upgraded_received_gift_id { get; set construct; }
Identifier of the corresponding upgraded gift; may be empty if
unknown. Use Client.get_received_gift to get information about the
gift
- public bool was_converted { get; set construct; }
True, if the gift was converted to Telegram Stars; 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
- public bool was_upgraded { get; set construct; }
True, if the gift was upgraded to a unique gift
Creation methods:
- public MessageGift (Gift gift, MessageSender sender_id, string received_gift_id, FormattedText text, int64 sell_star_count, int64 prepaid_upgrade_star_count, bool is_private, bool is_saved, bool can_be_upgraded, bool was_converted, bool was_upgraded, bool was_refunded, string upgraded_received_gift_id)
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