negezor / vk-io

Modern VK API SDK for Node.js
https://npm.im/vk-io
MIT License
548 stars 85 forks source link

Не работает параметры copyright на wall.post в группу с пользовательским токеном #572

Closed woophi closed 1 month ago

woophi commented 2 months ago

What did you do?

 const params: WallPostParams = {
        attachments: postData.attachments,
        copyright: post.settings.sourceLink,
        message: post.settings.groupsText?.[groupToBe.id] ?? post.settings.allGroupsText ?? '',
        primary_attachments: postData.primary_attachments_mode,
        close_comments: post.settings.firstComment ? 0 : post.settings.closedComments ? 1 : 0,
        from_group: 1,
        owner_id: -postData.vkGroupId,
      };
      console.debug('params', params);
      const vkPostData = await api.wall.post(params);

What did you expect to happen?

Создается пост в котором есть источник

What was the actual result?

Создается пост, но источника нет

Additional Info

console.debug('params', params);

params {
  attachments: [
    'photo11437372_457244098',
    'photo11437372_457244099',
    'photo11437372_457244100',
    'photo11437372_457244101',
    'photo11437372_457244102'
  ],
  copyright: 'https://www.sensearena.com/',
  message: '',
  primary_attachments: 'carousel',
  close_comments: 1,
  from_group: 1,
  owner_id: -133379540
}

Versions

package version
vk-io 4.9.1
node 20.17.0
TypeScript 5.1.3
pnpm 9.9.0
negezor commented 1 month ago

https://vk.com/wall-73662138_901057

TL;DR; Их больше нет