Layer 227
UsersGetSavedMusicById
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 for more info.
method
Users
users.getSavedMusicByID#7573a4e9 id:InputUser documents:Vector<InputDocument> = users.SavedMusic;
Parameters
| Name | Type | Description |
|---|---|---|
| Id | InputUser | The ID of the user. |
| Documents | Vector < InputDocument > | The songs (here, file_reference can be empty to refresh file references). |
Returns
users.SavedMusicGogram Example
// UsersGetSavedMusicById - positional arguments result, err := client.UsersGetSavedMusicById(&tg.InputUserSelf{}, &tg.VectorInputDocument{}) if err != nil { // handle error } // result is *tg.UsersSavedMusic
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | USER_ID_INVALID | The provided user ID is invalid. |