MadelineProtoDocs/docs/API_docs/constructors/updatePeerBlocked.md
2024-05-01 14:53:46 +02:00

1.1 KiB

title description nav_exclude image
updatePeerBlocked We blocked a peer, see here » for more info on blocklists. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updatePeerBlocked

Back to constructors index

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

Attributes:

Name Type Required Description
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.
peer_id Peer Yes The (un)blocked peer

Type: Update

Example:

$updatePeerBlocked = ['_' => 'updatePeerBlocked', 'blocked' => Bool, 'blocked_my_stories_from' => Bool, 'peer_id' => Peer];