aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2025-09-05 20:59:10 +0300
committerlevlam <levlam@telegram.org>2025-09-05 20:59:10 +0300
commit433dc7a5200cedcafa3ff792310cbc289b5c4df1 (patch)
treec11d3c8b940412430f12e3e64e6f17674a949cb0
parent9c3dcda5655f36c4814edbe468a0ef9e5d286698 (diff)
Improve documentation.
-rw-r--r--td/generate/scheme/td_api.tl8
1 files changed, 6 insertions, 2 deletions
diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl
index 974418016..8e7098a87 100644
--- a/td/generate/scheme/td_api.tl
+++ b/td/generate/scheme/td_api.tl
@@ -1708,8 +1708,12 @@ profileAccentColor id:int32 light_theme_colors:profileAccentColors dark_theme_co
userRating level:int32 is_maximum_level_reached:Bool rating:int53 current_level_rating:int53 next_level_rating:int53 = UserRating;
//@description Contains information about restrictions that must be applied to a chat or a message
-//@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
-//@has_sensitive_content True, if media content of the messages must be hidden with 18+ spoiler
+//@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
+//@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
restrictionInfo restriction_reason:string has_sensitive_content:Bool = RestrictionInfo;