SendGift
Object Hierarchy:
Description:
public class SendGift :
TDObject
Sends a gift to another user or channel chat. May return an error with a message "STARGIFT_USAGE_LIMITED" if the gift was sold out
Content:
Properties:
- public int64 gift_id { get; set construct; }
Identifier of the gift to send
- public bool is_private { get; set construct; }
Pass true to show gift text and sender only to the gift receiver;
otherwise, everyone will be able to see them
- public MessageSender owner_id { get; set construct; }
Identifier of the user or the channel chat that will receive the gift
- public bool pay_for_upgrade { get; set construct; }
Pass true to additionally pay for the gift upgrade and allow the
receiver to upgrade it for free
- public FormattedText text { get; set construct; }
Text to show along with the gift; 0-getOption("gift_text_length_max")
characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed. Must be empty if the receiver
enabled paid messages
Creation methods:
Inherited Members:
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