Layer 224
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.InputDocument{&tg.InputDocument{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}}) if err != nil { // handle error } // result is *tg.UsersSavedMusic
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | USER_ID_INVALID | The provided user ID is invalid. |