if event.type == VkEventType.MESSAGE_NEW and event.to_me:
if event.object['message']['attachments']:
if event.object['message']['attachments'][0]['photo']:
Выдает ошибку:
Traceback (most recent call last):
File "C:\Users\User\Desktop\Работа\job1.py", line 41, in
if event.object['message']['attachments']:
AttributeError: 'Event' object has no attribute 'object'
Может я какую-то библиотеку не подключил?