telebot icon indicating copy to clipboard operation
telebot copied to clipboard

proposal: add a way to get a specific entry from PhotoSize fields

Open gothchibjo opened this issue 3 years ago • 1 comments

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.

gothchibjo avatar Apr 04 '21 14:04 gothchibjo

You're right, currently, it's impossible to get any except the largest one. Maybe we should consider allowing it as well.

demget avatar May 23 '21 16:05 demget