telegram api method · layer 229 · #b26732a9
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.
definition
account.saveMusic#b26732a9 flags:# unsave:flags.0?true id:InputDocument after_id:flags.1?InputDocument = Bool;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
unsave | true | If set, removes the song. |
id | InputDocument | The 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_id | InputDocument | If set, the song will be added after the passed song (must be already pinned on the profile). |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 400 | DOCUMENT_INVALID | The specified document is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 213–229
| id | layers |
|---|---|
| #b26732a9 | 213–229 |