users.GetSavedMusicByID
- class pyrogram.raw.functions.users.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 » for more info.
- Details:
Layer:
223ID:
7573A4E9
- Parameters:
id (
InputUser) – The ID of the user.documents (List of
InputDocument) – The songs (here, file_reference can be empty to refresh file references).
- Returns:
TL Schema
users.getSavedMusicByID#7573a4e9
id:InputUser
documents:Vector<InputDocument>
= users.SavedMusic
Parameter Tree
GetSavedMusicByID
├── id →
InputUser│ ├──
InputUserEmpty│ ├──
InputUserSelf│ ├──
InputUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ └──
InputUserFromMessage│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── user_id →
long└── documents →
Vector < InputDocument >└──
InputDocument├── id →
long├── access_hash →
long└── file_reference →
bytesExample
await app.invoke(
GetSavedMusicByID(
id=await app.resolve_user(chat_id),
documents=[
InputDocumentEmpty()
],
)
)