elif menu == 1 and str(len(event.object.message['attachments'])) != "0":
photo = []
for item in event.object.message['attachments']:
print(item)
count = count + 1
if item['type'] == 'photo':
ph = 'photo{}_{}_{}'.format(item['photo']['owner_id'], item['photo']['id'], item['photo']['access_key'])
print(ph)
photo.append(ph)
data[str(id)]['photos'] = ','.join(photo)