Python
0
Вклад в тег
msg2 = event.object.message['attachments']
if str(msg2) == '[]':
print('1')
else:
msg2 = event.object.message['attachments'][0]
if 'video' in msg2:
msg2 = event.object.message['attachments'][0]['video']
own_id = str(msg2['owner_id'])
vid_id = str(msg2['id'])
video = 'video' + own_id + '_' + vid_id