V
V
VladikTanashuk2021-10-24 16:20:10
Python
VladikTanashuk, 2021-10-24 16:20:10

VKBottle, how to get a photo from a user's post?

Greetings, the question arose - how can I get a photo that a user sent on the VKBottle library? I didn't find anything on this subject in the search engines.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VladikTanashuk, 2021-10-24
@VladikTanashuk

If anyone needs it, I dug around and wrote the code:

async def func(message: Message):
      print(message.attachments[0].photo.sizes[-5].url)  #Вывод ссылки на изображение

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question