E
E
egorlisss2019-05-23 15:59:47
JavaScript
egorlisss, 2019-05-23 15:59:47

How to send vk-io text along with the document?

return message.sendDocument({
    value: (url),
    filename: `${message.$match[1]}.png`
  })

Sending a document
Tried to use:
return message.sendDocument({
    value: (url),
  message: `тест`,
    filename: `${message.$match[1]}.png`
  })

But the document is also attached, but without the text.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladlen Hellsite, 2019-05-23
@egorlisss

return message.sendDocument(
  {
    value: url,
    filename: `${message.$match[1]}.png`
  },
  {
     message: 'тест'
  }
);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question