contacts.Unblock

class pyrogram.raw.functions.contacts.Unblock

Deletes a peer from a blocklist, see here » for more info.

Details:
  • Layer: 223

  • ID: B550D328

Parameters:
  • id (InputPeer) – Peer

  • my_stories_from (bool, optional) – Whether the peer should be removed from the story blocklist; if not set, the peer will be removed from the main blocklist, see here » for more info.

Returns:

bool

TL Schema

contacts.unblock#b550d328
flags:#
my_stories_from:flags.0?true
id:InputPeer

= Bool

Parameter Tree

Unblock
├── my_stories_fromtrue (optional)
└── idInputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_idlong
├── InputPeerUser
│ ├── user_idlong
│ └── access_hashlong
│ ├── channel_idlong
│ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

await app.invoke(
    Unblock(
        my_stories_from=None,
        id=await app.resolve_peer(chat_id),
    )
)