Skip to main content

restrictionReason

Restriction reason. See here » for the full flow to use for restricted or age-gated content.

type tg.RestrictionReason struct { /* ... */ }

Fields

NameTypeRequiredDescription
PlatformstringyesPlatform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc)
ReasonstringyesRestriction reason (porno, terms, etc.). Ignore this restriction reason if it is contained in the ignore_restriction_reasons » client configuration parameter.
TextstringyesError message to be shown to the user

References