From 04eb724cd538157a764127c0d1bf7db16d3805cd Mon Sep 17 00:00:00 2001 From: zavsc <90477403+zavsc@users.noreply.github.com> Date: Sat, 2 Dec 2023 20:06:48 +0300 Subject: [PATCH] feat(api): add ability to know what user is listening (#1048) --- VKAPI/Handlers/Account.php | 1 + 1 file changed, 1 insertion(+) diff --git a/VKAPI/Handlers/Account.php b/VKAPI/Handlers/Account.php index a20c42be..16308b97 100644 --- a/VKAPI/Handlers/Account.php +++ b/VKAPI/Handlers/Account.php @@ -14,6 +14,7 @@ final class Account extends VKAPIRequestHandler "last_name" => $this->getUser()->getLastName(), "home_town" => $this->getUser()->getHometown(), "status" => $this->getUser()->getStatus(), + "audio_status" => is_null($this->getUser()->getCurrentAudioStatus()) ? NULL : $this->getUser()->getCurrentAudioStatus()->toVkApiStruct($this->getUser()), "bdate" => is_null($this->getUser()->getBirthday()) ? '01.01.1970' : $this->getUser()->getBirthday()->format('%e.%m.%Y'), "bdate_visibility" => $this->getUser()->getBirthdayPrivacy(), "phone" => "+420 ** *** 228", # TODO