account.saveMusic #

Adds or removes a song from the current user's profile see here » for more info on the music tab of the profile page.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.saveMusic#b26732a9 flags:# unsave:flags.0?true id:InputDocument after_id:flags.1?InputDocument = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
unsaveflags.0?trueIf set, removes the song.
idInputDocumentThe song to add or remove; can be an already added song when reordering songs with after_id. Adding an already added song will never re-add it, only move it to the top of the song list (or after the song passed in after_id).
after_idflags.1?InputDocumentIf set, the song will be added after the passed song (must be already pinned on the profile).

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400DOCUMENT_INVALIDThe specified document is invalid.

User profiles #

Telegram offers many customization options for your profile!