RestrictionInfo
Object Hierarchy:
Description:
public class RestrictionInfo :
Error
Contains information about restrictions that must be applied to a chat or a message
Content:
Properties:
- public bool has_sensitive_content { get; set construct; }
True, if media content of the messages must be hidden with 18+
spoiler. Use value of the option "can_ignore_sensitive_content_restrictions" to check whether the current user can ignore the
restriction. If age verification parameters were received in updateAgeVerificationParameters, then the user must complete age
verification to ignore the restriction. Set the option "ignore_sensitive_content_restrictions" to true if the user passes age
verification
- public string restriction_reason { get; set construct; }
A human-readable description of the reason why access to the content
must be restricted. If empty, then the content can be accessed, but may be covered by hidden with 18+ spoiler anyway
Creation methods:
- public RestrictionInfo (string restriction_reason, bool has_sensitive_content)
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