CRMchat APIBeta
Telegram APIAccount

account.getAutoSaveSettings

POST
/workspaces/{workspaceId}/telegram-accounts/{accountId}/call/account.getAutoSaveSettings

Get autosave settings

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

workspaceId*string

Workspace ID

accountId*string

Telegram account ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

params*

Get autosave settings

Response Body

application/json

application/json

curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/account.getAutoSaveSettings" \  -H "Content-Type: application/json" \  -d '{    "params": {}  }'
{  "result": {    "_": "account.autoSaveSettings",    "usersSettings": {      "_": "autoSaveSettings",      "photos": true,      "videos": true,      "videoMaxSize": "string"    },    "chatsSettings": {      "_": "autoSaveSettings",      "photos": true,      "videos": true,      "videoMaxSize": "string"    },    "broadcastsSettings": {      "_": "autoSaveSettings",      "photos": true,      "videos": true,      "videoMaxSize": "string"    },    "exceptions": [      {        "_": "autoSaveException",        "peer": {          "_": "peerUser",          "userId": 0        },        "settings": {          "_": "autoSaveSettings",          "photos": true,          "videos": true,          "videoMaxSize": "string"        }      }    ],    "chats": [      {        "_": "chatEmpty",        "id": 0      }    ],    "users": [      {        "_": "userEmpty",        "id": 0      }    ]  }}