#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
|
| 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 const std::int32_t | ID = -1980541683 |
| | Identifier uniquely determining a type of the object.
|
| |
Contains information about restrictions that must be applied to a chat or a message.
Definition at line 60030 of file td_api.h.
◆ 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. |
◆ 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] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
◆ 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:
- /home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h