RestrictionReason

class pyrogram.raw.types.RestrictionReason

Restriction reason.

Constructor of RestrictionReason.

Details:
  • Layer: 194

  • 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.)

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