Package org.drinkless.tdlib
Class TdApi.RestrictionInfo
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.RestrictionInfo
- Enclosing class:
- TdApi
Contains information about restrictions that must be applied to a chat or a message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanTrue, if media content of the messages must be hidden with 18+ spoiler.A human-readable description of the reason why access to the content must be restricted. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about restrictions that must be applied to a chat or a message.RestrictionInfo(String restrictionReason, boolean hasSensitiveContent) Contains information about restrictions that must be applied to a chat or a message. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
restrictionReason
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. -
hasSensitiveContent
public boolean hasSensitiveContentTrue, 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
RestrictionInfo
public RestrictionInfo()Contains information about restrictions that must be applied to a chat or a message. -
RestrictionInfo
Contains information about restrictions that must be applied to a chat or a message.- Parameters:
restrictionReason- 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.hasSensitiveContent- 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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-