tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::restrictionInfo Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::restrictionInfo:
td::td_api::Object td::TlObject

Public Member Functions

 restrictionInfo ()
 
 restrictionInfo (string const &restriction_reason_, bool has_sensitive_content_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

string restriction_reason_
 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.
 
bool has_sensitive_content_
 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.
 

Static Public Attributes

static const std::int32_t ID = -1980541683
 Identifier uniquely determining a type of the object.
 

Detailed Description

Contains information about restrictions that must be applied to a chat or a message.

Definition at line 60030 of file td_api.h.

Constructor & Destructor Documentation

◆ restrictionInfo() [1/2]

td::td_api::restrictionInfo::restrictionInfo ( )

Contains information about restrictions that must be applied to a chat or a message.

◆ restrictionInfo() [2/2]

td::td_api::restrictionInfo::restrictionInfo ( string const &  restriction_reason_,
bool  has_sensitive_content_ 
)

Contains information about restrictions that must be applied to a chat or a message.

Parameters
[in]restriction_reason_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.
[in]has_sensitive_content_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.

Member Function Documentation

◆ store()

void td::td_api::restrictionInfo::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ has_sensitive_content_

bool td::td_api::restrictionInfo::has_sensitive_content_

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.

Definition at line 60043 of file td_api.h.

◆ ID

const std::int32_t td::td_api::restrictionInfo::ID = -1980541683
static

Identifier uniquely determining a type of the object.

Definition at line 60059 of file td_api.h.

◆ restriction_reason_

string td::td_api::restrictionInfo::restriction_reason_

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.

Definition at line 60041 of file td_api.h.


The documentation for this class was generated from the following file: