Task: Telegram commands to spotify test

n8n workflow JSON:
{"id":30,"name":"Telegram commands to spotify","nodes":[{"name":"Telegram Trigger","type":"n8n-nodes-base.telegramTrigger","position":[-120,40],"webhookId":"33d2e5c1-6de7-483e-80be-77eea5b6030e","parameters":{"updates":["message","*"],"additionalFields":{}},"credentials":{"telegramApi":{"id":"48","name":"Telegram account"}},"typeVersion":1},{"name":"Get Text","type":"n8n-nodes-base.set","position":[40,40],"parameters":{"values":{"string":[{"name":"Text","value":"={{$node[\"Telegram Trigger\"].json[\"message\"][\"text\"]}}"}]},"options":{},"keepOnlySet":true},"typeVersion":1},{"name":"Get Track name","type":"n8n-nodes-base.set","position":[540,20],"parameters":{"values":{"string":[{"name":"Track name","value":"={{$node[\"Get Text\"].json[\"Text\"].split(' ')[1]}}"}]},"options":{},"keepOnlySet":true},"typeVersion":1},{"name":"Switch","type":"n8n-nodes-base.switch","position":[200,40],"parameters":{"rules":{"rules":[{"value2":"resume"},{"output":1,"value2":"play"},{"output":2,"value2":"pause"}]},"value1":"={{$node[\"Get Text\"].json[\"Text\"].split(' ')[0]}}","dataType":"string","fallbackOutput":3},"typeVersion":1},{"name":"IF","type":"n8n-nodes-base.if","position":[760,20],"parameters":{"conditions":{"string":[{"value1":"={{$node[\"Get Track name\"].json[\"Track name\"]}}","operation":"isEmpty"}]}},"typeVersion":1},{"name":"Switch1","type":"n8n-nodes-base.switch","position":[960,40],"parameters":{"rules":{"rules":[{"value2":"track"},{"output":1,"value2":"album"},{"output":2,"value2":"playlist"},{"output":3,"value2":"artist"}]},"value1":"={{$node[\"Get Track name\"].json[\"Track name\"]}}","dataType":"string"},"typeVersion":1},{"name":"Search track","type":"n8n-nodes-base.spotify","position":[1360,-220],"parameters":{"limit":1,"query":"={{$node[\"Get Text\"].json[\"Text\"].split(' ').slice(2).join(' ')}}","filters":{},"resource":"track","operation":"search"},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1},{"name":"Search album","type":"n8n-nodes-base.spotify","position":[1360,-20],"parameters":{"limit":1,"query":"={{$node[\"Get Text\"].json[\"Text\"].split(' ').slice(2).join(' ')}}","filters":{},"resource":"album","operation":"search"},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1},{"name":"Search playlist","type":"n8n-nodes-base.spotify","position":[1360,160],"parameters":{"limit":1,"query":"={{$node[\"Get Text\"].json[\"Text\"].split(' ').slice(2).join(' ')}}","filters":{},"resource":"playlist","operation":"search"},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1},{"name":"Search artist","type":"n8n-nodes-base.spotify","position":[1360,360],"parameters":{"limit":1,"query":"={{$node[\"Get Text\"].json[\"Text\"].split(' ').slice(2).join(' ')}}","filters":{},"resource":"artist","operation":"search"},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1},{"name":"Switch2","type":"n8n-nodes-base.switch","position":[320,440],"parameters":{"rules":{"rules":[{"output":1,"value2":"next"},{"output":2,"value2":"previous"},{"output":3,"value2":"get"},{"value2":"stop"}]},"value1":"={{$node[\"Get Text\"].json[\"Text\"].split(' ')[0]}}","dataType":"string","fallbackOutput":3},"typeVersion":1},{"name":"Play Next","type":"n8n-nodes-base.spotify","position":[840,360],"parameters":{"operation":"nextSong"},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1},{"name":"Play Previous","type":"n8n-nodes-base.spotify","position":[840,540],"parameters":{"operation":"previousSong"},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1},{"name":"Pause player","type":"n8n-nodes-base.spotify","position":[660,180],"parameters":{"operation":"pause"},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1},{"name":"Resume Player","type":"n8n-nodes-base.spotify","position":[920,-420],"parameters":{"operation":"resume"},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1},{"name":"Play Track","type":"n8n-nodes-base.spotify","position":[1640,-220],"parameters":{"id":"=spotify:track:{{$node[\"Search track\"].json[\"id\"]}}","operation":"startMusic"},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1},{"name":"Play Album","type":"n8n-nodes-base.spotify","position":[1640,-20],"parameters":{"id":"=spotify:album:{{$node[\"Search album\"].json[\"id\"]}}","operation":"startMusic"},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1},{"name":"Play Playlist","type":"n8n-nodes-base.spotify","position":[1640,160],"parameters":{"id":"=spotify:playlist:{{$node[\"Search playlist\"].json[\"id\"]}}","operation":"startMusic"},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1},{"name":"Play Artist","type":"n8n-nodes-base.spotify","position":[1660,360],"parameters":{"id":"=spotify:artist:{{$node[\"Search artist\"].json[\"id\"]}}","operation":"startMusic"},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1},{"name":"Get my playlists","type":"n8n-nodes-base.spotify","position":[840,740],"parameters":{"resource":"playlist","operation":"getUserPlaylists","returnAll":true},"credentials":{"spotifyOAuth2Api":{"id":"17","name":"Spotify account"}},"typeVersion":1}],"active":true,"settings":{},"connections":{"IF":{"main":[[{"node":"Resume Player","type":"main","index":0}],[{"node":"Switch1","type":"main","index":0}]]},"Switch":{"main":[[{"node":"Resume Player","type":"main","index":0}],[{"node":"Get Track name","type":"main","index":0}],[{"node":"Pause player","type":"main","index":0}],[{"node":"Switch2","type":"main","index":0}]]},"Switch1":{"main":[[{"node":"Search track","type":"main","index":0}],[{"node":"Search album","type":"main","index":0}],[{"node":"Search playlist","type":"main","index":0}],[{"node":"Search artist","type":"main","index":0}]]},"Switch2":{"main":[[{"node":"Pause player","type":"main","index":0}],[{"node":"Play Next","type":"main","index":0}],[{"node":"Play Previous","type":"main","index":0}],[{"node":"Get my playlists","type":"main","index":0}]]},"Get Text":{"main":[[{"node":"Switch","type":"main","index":0}]]},"Search album":{"main":[[{"node":"Play Album","type":"main","index":0}]]},"Search track":{"main":[[{"node":"Play Track","type":"main","index":0}]]},"Search artist":{"main":[[{"node":"Play Artist","type":"main","index":0}]]},"Get Track name":{"main":[[{"node":"IF","type":"main","index":0}]]},"Search playlist":{"main":[[{"node":"Play Playlist","type":"main","index":0}]]},"Get my playlists":{"main":[[]]},"Telegram Trigger":{"main":[[{"node":"Get Text","type":"main","index":0}]]}}}