This commit is contained in:
F4ilji
2026-03-20 23:35:09 +05:00
parent c80a52ab86
commit 836452add6
9 changed files with 88 additions and 17 deletions
+2 -1
View File
@@ -48,7 +48,7 @@ class VkWallService
}
}
public function createPost(string $message, int $from_group, string $attachments = '', int|null $publish_date = null)
public function createPost(string $message, int $from_group, string $attachments = '', int|null $publish_date = null, string $primary_attachments_mode = 'carousel')
{
$token = $this->vkAuthService->getToken()->access_token;
$params = [
@@ -58,6 +58,7 @@ class VkWallService
'attachments' => $attachments,
'access_token' => $token,
'publish_date' => $publish_date,
'primary_attachments_mode' => $primary_attachments_mode,
'v' => '5.131',
];