contacts.Unblock

class pyrogram.raw.functions.contacts.Unblock

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

Details:
  • Layer: 227

  • 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_from → true (optional)
└── id → InputPeer
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_id → long
├── InputPeerUser
│ ├── user_id → long
│ └── access_hash → long
│ ├── channel_id → long
│ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── channel_id → long

Example

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