Inherits Object.
Contains information about restrictions that must be applied to a chat or a message.
Public Fields | |
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. | |
Public Instance Methods | |
restrictionInfo () | |
restrictionInfo (string const &restriction_reason_, bool has_sensitive_content_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
![]() | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -1980541683 |
Identifier uniquely determining a type of the object. | |
restrictionInfo | ( | ) |
Contains information about restrictions that must be applied to a chat or a message.
restrictionInfo | ( | string const & | restriction_reason_, |
bool | has_sensitive_content_ | ||
) |
Contains information about restrictions that must be applied to a chat or a message.
[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. |
|
finalvirtual |