UpdatePeerBlocked
- class pyrogram.raw.types.UpdatePeerBlocked
We blocked a peer, see here » for more info on blocklists.
Constructor of
Update.- Details:
Layer:
223ID:
EBE07752
- Parameters:
peer_id (
Peer) – The (un)blocked peerblocked (
bool, optional) – Whether the peer was blocked or unblockedblocked_my_stories_from (
bool, optional) – Whether the peer was added/removed to/from the story blocklist; if not set, this update affects the main blocklist, see here » for more info.
TL Schema
updatePeerBlocked#ebe07752
flags:#
blocked:flags.0?true
blocked_my_stories_from:flags.1?true
peer_id:Peer
= Update
Parameter Tree
UpdatePeerBlocked
├── blocked →
true (optional)├── blocked_my_stories_from →
true (optional)└── peer_id →
Peer├──
PeerUser│ └── user_id →
long├──
PeerChat│ └── chat_id →
long└──
PeerChannel└── channel_id →
longExample
UpdatePeerBlocked(
peer_id=PeerUser(user_id=0),
)