Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question