Telegram APIMessages
messages.requestEncryption
Sends a request to start a secret chat to the user.
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*
Sends a request to start a secret chat to the user.
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/messages.requestEncryption" \ -H "Content-Type: application/json" \ -d '{ "params": { "userId": { "_": "inputUserEmpty" }, "randomId": 0, "gA": "string" } }'{ "result": { "_": "encryptedChatEmpty", "id": 0 }}