Layer 220
AccountToggleConnectedBotPaused
Pause or unpause a specific chat, temporarily disconnecting it from all business bots.
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
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// AccountToggleConnectedBotPaused - positional arguments result, err := client.AccountToggleConnectedBotPaused(&tg.InputPeerUser{UserID: int64(123456789)}, true) if err != nil { // handle error } // result is *tg.Bool