i'm trying to access file_id but its in a list.
this is a part of the code update.message.photo.file_id
i am getting this error: 'list' object has no attribute 'file_id'
here's the json file:
{
'update_id': 703304245,
'message': {
'photo': [
{
'width': 90,
'height': 51,
'file_id': 'AgACAgQAAx0CU5MMFAACDgFj_wV1c6WOBWXU_GYGLwT9BV9cngACw7sxG93l-VMAAfavUwejsMMBAAMCAANzAAMuBA',
'file_size': 1293,
'file_unique_id': 'AQADw7sxG93l-VN4'
},
],