RestrictionReason

class pyrogram.types.RestrictionReason

Restriction reason.

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.