Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: NameResolutionFailure #6

Open
timarsha opened this issue Apr 20, 2020 · 0 comments
Open

Error: NameResolutionFailure #6

timarsha opened this issue Apr 20, 2020 · 0 comments

Comments

@timarsha
Copy link

Ошибка при вызове - ExtractStreamTrack

public override void Perform(MessageEventArgs messageEventArgs, YandexMusicApi yandexMusicApi)
{
YandexTrack searchTrack = yandexMusicApi.SearchTrack("Мультибрендовый").First();
YandexTrack track = yandexMusicApi.GetTrack(searchTrack.Id);
YandexStreamTrack streamTrack = yandexMusicApi.ExtractStreamTrack(track);

        InputOnlineFile inputStream = new InputOnlineFile(streamTrack, $"{track.Title}");

        BotClient.SendAudioAsync(messageEventArgs.Message.Chat, inputStream).GetAwaiter().GetResult();
    }
@timarsha timarsha reopened this Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant