From 2f11eab1a1a015b1a3f9c2529bc8b390ab8b09d4 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 31 Jan 2022 19:47:38 +0700 Subject: [PATCH] add audio quality --- driver/utils.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/driver/utils.py b/driver/utils.py index 3af746a..820f644 100644 --- a/driver/utils.py +++ b/driver/utils.py @@ -13,6 +13,7 @@ from pytgcalls.types.input_stream.quality import ( ) from pytgcalls.types.stream import StreamAudioEnded + keyboard = InlineKeyboardMarkup( [ [ @@ -42,6 +43,7 @@ async def skip_current_song(chat_id): chat_id, AudioPiped( url, + HighQualityAudio(), ), ) elif type == "Video": @@ -52,7 +54,12 @@ async def skip_current_song(chat_id): elif Q == 360: hm = LowQualityVideo() await call_py.change_stream( - chat_id, AudioVideoPiped(url, HighQualityAudio(), hm) + chat_id, + AudioVideoPiped( + url, + HighQualityAudio(), + hm + ) ) pop_an_item(chat_id) return [songname, link, type]