From e42b319d42ee04065610c3a49dc0c2bdde47f9bd Mon Sep 17 00:00:00 2001 From: zavsc <90477403+zavsc@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:34:32 +0300 Subject: [PATCH] VKAPI audio broadcast --- VKAPI/Handlers/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VKAPI/Handlers/Account.php b/VKAPI/Handlers/Account.php index c5491443..16308b97 100644 --- a/VKAPI/Handlers/Account.php +++ b/VKAPI/Handlers/Account.php @@ -14,7 +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()) ? '' : $this->getUser()->getCurrentAudioStatus(), + "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