Layer 220
constructor
restrictionReason#d072acb4 platform:string reason:string text:string = RestrictionReason;

Parameters

Name Type Description
Platform string Platform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator ( android-ios, ios-wp, etc)
Reason string Restriction reason ( porno, terms, etc.). Ignore this restriction reason if it is contained in the ignore_restriction_reasons client configuration parameter.
Text string Error message to be shown to the user

Gogram Example

// Creating RestrictionReason constructor
obj := &tg.RestrictionReason{
    Platform: "...",
    Reason: "...",
    Text: "...",
}