users.getSavedMusic #

Get songs pinned to the user's profile, see here » for more info.

Layer 223

users.savedMusicNotModified#e3878aa4 count:int = users.SavedMusic;
users.savedMusic#34a2f297 count:int documents:Vector<Document> = users.SavedMusic;
---functions---
users.getSavedMusic#788d7fe3 id:InputUser offset:int limit:int hash:long = users.SavedMusic;

Parameters #

NameTypeDescription
idInputUserThe ID of the user.
offsetintOffset for pagination.
limitintMaximum number of results to return, see pagination
hashlongHash » of the IDs of previously added songs, to avoid returning any result if there was no change.

Result #

users.SavedMusic

Both users and bots can use this method #

Possible errors #

CodeTypeDescription
400USER_ID_INVALIDThe provided user ID is invalid.

Pagination in the API #

How to fetch results from large lists of objects.

User profiles #

Telegram offers many customization options for your profile!