V
V
Vadim_Gornik2020-07-21 19:57:36
Python
Vadim_Gornik, 2020-07-21 19:57:36

How to attach two attachments to a bot message?

I tried to attach two attachments to the message at once, it sends only one.
What's wrong?

if msg == '/команды':
        attachment = 'photo-188884444_457239102', 'audio-188884444_456239017'
        sender_with_attachment(id, commands, attachment=attachment)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
soremix, 2020-07-21
@Vadim_Gornik

attachmentmediaAttachments to a private message separated by commas

https://vk.com/dev/messages.send

T
truenotnamed, 2020-07-23
@truenotnamed

Instead of

attachment = 'photo-188884444_457239102', 'audio-188884444_456239017'

need to do
attachment = 'photo-188884444_457239102,audio-188884444_456239017'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question