Layer 224
method Users
account.toggleConnectedBotPaused#646e1097 peer:InputPeer paused:Bool = Bool;

Parameters

Name Type Description
Peer InputPeer The chat to pause
Paused Bool Whether to pause or unpause the chat

Returns

Bool

Gogram Example

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

Possible Errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.