RestrictionReason

class pyrogram.raw.types.RestrictionReason

Restriction reason.

Constructor type of RestrictionReason.

Details
  • Layer: 126

  • ID: 0xd072acb4

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.