From 84111d73e109b4a223c4368fd381fafb6bb40487 Mon Sep 17 00:00:00 2001 From: Ruslan Isaev Date: Tue, 16 Jun 2026 10:36:23 +0300 Subject: [PATCH 1/2] fix(api): let audio.get API method receive 0 as owner_id --- VKAPI/Handlers/Audio.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VKAPI/Handlers/Audio.php b/VKAPI/Handlers/Audio.php index 184fb069f..1c58da665 100644 --- a/VKAPI/Handlers/Audio.php +++ b/VKAPI/Handlers/Audio.php @@ -210,6 +210,9 @@ public function get(int $owner_id = 0, int $album_id = 0, string $audio_ids = '' { $this->requireUser(); + if($owner_id == 0) + $owner_id = $this->getUser()->getRealId(); + $shuffleSeed = null; $shuffleSeedStr = null; if ($shuffle == 1) { From a52fdb13999d381fdfbb62b57796d9ac597b97bf Mon Sep 17 00:00:00 2001 From: Ruslan Isaev Date: Tue, 16 Jun 2026 15:09:35 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=D1=83=D1=83=D1=83=20=D0=BB=D0=B8=D0=BD?= =?UTF-8?q?=D1=82=D0=B5=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VKAPI/Handlers/Audio.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VKAPI/Handlers/Audio.php b/VKAPI/Handlers/Audio.php index 1c58da665..53ea2d831 100644 --- a/VKAPI/Handlers/Audio.php +++ b/VKAPI/Handlers/Audio.php @@ -210,8 +210,9 @@ public function get(int $owner_id = 0, int $album_id = 0, string $audio_ids = '' { $this->requireUser(); - if($owner_id == 0) + if ($owner_id == 0) { $owner_id = $this->getUser()->getRealId(); + } $shuffleSeed = null; $shuffleSeedStr = null;