Introduction
Getting Started
API Reference
Topic Guides
Meta
Telegram API
pyrogram.
Restriction
A restriction applied to bots or chats.
platform (str) – The platform the restriction is applied to, e.g. “ios”, “android”
str
reason (str) – The restriction reason, e.g. “porn”, “copyright”.
text (str) – The restriction text.