Layer 228
CommunitiesTogglePeerLinkRequestApproval
method
communities.togglePeerLinkRequestApproval#8c8219a8 flags:# reject:flags.0?true community:InputChannel peer:InputPeer = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Reject | flags.0?true | |
| Community | InputChannel | |
| Peer | InputPeer |
Returns
BoolGogram Example
// CommunitiesTogglePeerLinkRequestApproval - using Params struct result, err := client.CommunitiesTogglePeerLinkRequestApproval(&tg.CommunitiesTogglePeerLinkRequestApprovalParams{ Community: &tg.InputChannel{ChannelID: int64(1234567890), AccessHash: int64(5678901234567890)}, Peer: &tg.InputPeerUser{UserID: int64(777000)}, // Optional fields: // Reject: true, }) if err != nil { // handle error } // result is *tg.Bool