A
A
Alexey Fobius2021-01-04 06:03:27
Python
Alexey Fobius, 2021-01-04 06:03:27

The bot does not send photos, why?

before, he sent pictures that were in public, through their ID (photo-000000000_000000000)

I needed to pull out the ID of the pictures from the PM, and re-send it on behalf of the bot
, but she simply does not want to go,
why is that?

the code :

r = vk.messages.getById(message_ids=event.message_id)
    	b = r['items'][0]['attachments'][0]["photo"]["id"]
    	c = r['items'][0]['attachments'][0]["photo"]["owner_id"]
    	print(c,b)


I pull out her id, and then just enter the send method with pens,
but the bot only throws the text that should be attached to the photo

, what's the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question