hasSensitiveContent property

bool hasSensitiveContent
final

hasSensitiveContent True, if the media content of the messages must be hidden with an 18+ spoiler. Use the 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

Implementation

final bool hasSensitiveContent;