Layer 224
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 RestrictionReasonObj constructor
obj := &tg.RestrictionReasonObj{
    Platform: "Hello, World!",
    Reason: "Hello, World!",
    Text: "Hello, World!",
}