get_saved_music_by_id()¶
- async Client.get_saved_music_by_id()¶
Check if the passed songs are still pinned to the user’s profile, or refresh their file references.
Usable by Users Bots- Parameters:
user_id (
int|str) – Unique identifier (int) or username (str) of the target user.documents (List of
InputDocument) – List of songs/documents.
- Returns:
SavedMusic– The saved music info.
Example
music = await app.get_saved_music_by_id(user_id, [doc])