UpdatePeerBlocked

class pyrogram.raw.types.UpdatePeerBlocked

We blocked a peer, see here » for more info on blocklists.

Constructor of Update.

Details:
  • Layer: 223

  • ID: EBE07752

Parameters:
  • peer_id (Peer) – The (un)blocked peer

  • blocked (bool, optional) – Whether the peer was blocked or unblocked

  • blocked_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
├── blockedtrue (optional)
├── blocked_my_stories_fromtrue (optional)
└── peer_idPeer
├── PeerUser
│ └── user_idlong
├── PeerChat
│ └── chat_idlong
└── PeerChannel
└── channel_idlong

Example

UpdatePeerBlocked(
    peer_id=PeerUser(user_id=0),
)