RestrictionReason

class pyrogram.raw.types.RestrictionReason

Restriction reason.

Constructor of RestrictionReason.

Details:
  • Layer: 223

  • ID: D072ACB4

Parameters:
  • platform (str) – Platform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc)

  • reason (str) – Restriction reason (porno, terms, etc.). Ignore this restriction reason if it is contained in the ignore_restriction_reasons » client configuration parameter.

  • text (str) – Error message to be shown to the user

TL Schema

restrictionReason#d072acb4
platform:string
reason:string
text:string

= RestrictionReason

Parameter Tree

RestrictionReason
├── platformstring
├── reasonstring
└── textstring

Example

RestrictionReason(
    platform="text",
    reason="text",
    text="Open",
)