users.getSavedMusic
Get songs pinned to the user's profile, see here » for more info.
Authorization
bearerAuth In: header
Path Parameters
Workspace ID
Telegram account ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Get songs pinned to the user's profile, see here » for more info.
Response Body
application/json
application/json
curl -X POST "https://example.com/workspaces/string/telegram-accounts/string/call/users.getSavedMusic" \ -H "Content-Type: application/json" \ -d '{ "params": { "id": { "_": "inputUserEmpty" }, "offset": 0, "limit": 0, "hash": "string" } }'{ "result": { "_": "users.savedMusicNotModified", "count": 0 }}getRequirementsToContact
Check whether we can write to the specified users, used to implement bulk checks for [Premium-only messages »](https://core.telegram.org/api/privacy#require-premium-for-new-non-contact-users) and [paid messages »](https://core.telegram.org/api/paid-messages). For each input user, returns a [RequirementToContact](https://core.telegram.org/type/RequirementToContact) constructor (at the same offset in the vector) containing requirements to contact them.
getSavedMusicByID
Check if the passed songs are still pinned to the user's profile, or refresh the file references of songs pinned on a user's profile [see here »](https://core.telegram.org/api/profile#music) for more info.