Restriction

class pyrogram.Restriction

A restriction applied to bots or chats.

Parameters
  • platform (str) – The platform the restriction is applied to, e.g. “ios”, “android”

  • reason (str) – The restriction reason, e.g. “porn”, “copyright”.

  • text (str) – The restriction text.