Telegram APIMessages
messages.viewSponsoredMessage
Mark a specific sponsored message » as read
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*
Mark a specific sponsored message » as read
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/messages.viewSponsoredMessage" \ -H "Content-Type: application/json" \ -d '{ "params": { "randomId": "string" } }'{ "result": true}uploadMedia
Upload a file and associate it to a chat (without actually sending it to the chat) May also be used in a [business connection](https://core.telegram.org/api/bots/connected-business-bots), not by wrapping the query in `RawInvokeWithBusinessConnectionRequest`, but rather by specifying the business connection ID in the business_connection_id parameter.
applyGiftCode
Apply a [Telegram Premium giftcode »](https://core.telegram.org/api/giveaways)