telegram api method · layer 229 · #b26732a9

account.saveMusic

usable by users

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

definition

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).

returns

Bool

errors (3)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400DOCUMENT_INVALIDThe specified document is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 213–229

idlayers
#b26732a9213–229