Layer 220
method Users
contacts.unblock#b550d328 flags:# my_stories_from:flags.0?true id:InputPeer = Bool;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
MyStoriesFrom flags.0?true 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.
Id InputPeer Peer

Returns

Bool

Possible Errors

Code Type Description
400 CHANNEL_PRIVATE You haven't joined this channel/supergroup.
400 CONTACT_ID_INVALID The provided contact ID is invalid.
400 MSG_ID_INVALID Invalid message ID provided.
400 PEER_ID_INVALID The provided peer id is invalid.

Gogram Example

// ContactsUnblock - using Params struct
result, err := client.ContactsUnblock(&tg.ContactsUnblockParams{
    Id: &tg.InputPeerUser{UserID: int64(123456789)},

    // Optional fields:
    // MyStoriesFrom: true,
})
if err != nil {
    // handle error
}
// result is *tg.Bool