telebot
telebot copied to clipboard
proposal: add a way to get a specific entry from PhotoSize fields
It's important for me to get a thumbnail not larger than width or height, so I would be glad to see something like Message.Photo.[]Sizes. Can I get it from the telebot?
I found in the docs:
type Message struct {
...
// For a photo, all available sizes (thumbnails).
// ^^^^^^^^^^^^^^^^^^^
Photo *Photo `json:"photo"`
But the Photo struct contains no other thumbnail sizes except the largest one.
You're right, currently, it's impossible to get any except the largest one. Maybe we should consider allowing it as well.