restrictionReason
Restriction reason. See here » for the full flow to use for restricted or age-gated content.
type tg.RestrictionReason struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
Platform | string | yes | Platform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc) |
Reason | string | yes | Restriction reason (porno, terms, etc.). Ignore this restriction reason if it is contained in the ignore_restriction_reasons » client configuration parameter. |
Text | string | yes | Error message to be shown to the user |
References
- Official documentation
- Generated Go reference
- TL definition:
restrictionReason#d072acb4