R
R
Roma2021-02-12 21:44:55
In contact with
Roma, 2021-02-12 21:44:55

How to send a photo with text?

How to send a photo with text

Library vk_api

Example ↓
6026cc912e8fe643800745.jpeg
Please help me, I just couldn't figure it out myself...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex K, 2021-02-13
@POMA0197263

The official documentation has a description of the entire photo upload process: https://vk.com/dev/upload_files?f=4.+%D0%97%D0%B0%... The messages.send
method is used to send a message . To attach a photo to a message, you need to pass the data in the attachment parameter after uploading it .

K
Kilisami, 2021-02-12
@Kilisami

f = open("path to photo")
I'm not friends with vk api so let's do this
bot.send_message(message.chat.id, f + "text")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question