SponsoredMessage
Object Hierarchy:
Description:
public class SponsoredMessage :
Error
Describes a sponsored message
Content:
Properties:
- public int32 accent_color_id { get; set construct; }
Identifier of the accent color for title, button text and message
background
- public string additional_info { get; set construct; }
If non-empty, additional information about the sponsored message to be
shown along with the message
- public int64 background_custom_emoji_id { get; set construct; }
Identifier of a custom emoji to be shown on the message background; 0
if none
- public string button_text { get; set construct; }
Text for the message action button
- public bool can_be_reported { get; set construct; }
- public MessageContent content { get; set construct; }
Content of the message. Currently, can be only of the types
messageText, messageAnimation, messagePhoto, or messageVideo. Video messages can be viewed fullscreen
- public bool is_recommended { get; set construct; }
True, if the message needs to be labeled as "recommended" instead of
"sponsored"
- public int64 message_id { get; set construct; }
Message identifier; unique for the chat to which the sponsored message
belongs among both ordinary and sponsored messages
- public MessageSponsor sponsor { get; set construct; }
Information about the sponsor of the message
- public string title { get; set construct; }
Title of the sponsored message
Creation methods:
- public SponsoredMessage (int64 message_id, bool is_recommended, bool can_be_reported, MessageContent content, MessageSponsor sponsor, string title, string button_text, int32 accent_color_id, int64 background_custom_emoji_id, string additional_info)
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