Telegram APIMessages
messages.getWebPagePreview
Get preview of webpage
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 preview of webpage
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/messages.getWebPagePreview" \ -H "Content-Type: application/json" \ -d '{ "params": { "message": "string" } }'{ "result": { "_": "messages.webPagePreview", "media": { "_": "messageMediaEmpty" }, "chats": [ { "_": "chatEmpty", "id": 0 } ], "users": [ { "_": "userEmpty", "id": 0 } ] }}