Выдаёт такую ошибку TypeError: float() argument must be a string or a number, not 'PhotoSize'

 @bot.message_handler(commands=['start']) def start_message(message):
     bot.send_message(message.chat.id, "А")
 
 @bot.message_handler(content_types=['photo']) def
 get_user_photo(message):
 
     img = message.photo
 
     img_array = img_to_array(img)
 
 bot.polling(none_stop=True, interval=0)

Ответы (0 шт):