Layer 220
method Users

Parameters

Name Type Description
Peer InputPeer The chat to disconnect

Returns

Bool

Possible Errors

Code Type Description
400 BOT_ALREADY_DISABLED The connected business bot was already disabled for the specified peer.
400 BOT_NOT_CONNECTED_YET No business bot is connected to the currently logged in user.
400 PEER_ID_INVALID The provided peer id is invalid.

Gogram Example

// AccountDisablePeerConnectedBot - positional arguments
result, err := client.AccountDisablePeerConnectedBot(&tg.InputPeerUser{UserID: int64(123456789)})
if err != nil {
    // handle error
}
// result is *tg.Bool