Add option to choose between providers
All checks were successful
Deploy Service / deploy (push) Successful in 30s
All checks were successful
Deploy Service / deploy (push) Successful in 30s
This commit is contained in:
parent
f56dd8a46a
commit
773ed66702
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ async def query_list(e: events.InlineQuery.Event):
|
|||
user = await get_user(e.sender_id)
|
||||
if not user:
|
||||
return await e.answer(switch_pm='Link account first', switch_pm_param='link')
|
||||
if user.default == 'spotify' and user.spotify_auth:
|
||||
if user.spotify_auth and (str(e.text) == 's' or user.default == 'spotify' and not str(e.text)):
|
||||
ctx = MusicProviderContext(SpotifyStrategy(e.sender_id))
|
||||
else:
|
||||
ctx = MusicProviderContext(YandexMusicStrategy(e.sender_id))
|
||||
|
|
Loading…
Add table
Reference in a new issue