API Endpoints
Buy Stars
Buys stars for a given user.
AuthorizationBearer <token>
User session scheme
In: header
Scope: stars
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
username*Username
Telegram username of the user to whom buy stars
showSender?Showsender
Show telegram sender
quantity*Quantity
Quantity of stars to buy
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/stars/buy" \ -H "Content-Type: application/json" \ -d '{ "username": "string", "quantity": 50 }'{ "messageHash": "string", "transactionId": "string", "photo": "string", "name": "string", "amount": 1, "avatarUrl": "string"}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}