You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
You're right, currently, it's impossible to get any except the largest one. Maybe we should consider allowing it as well.
demget
changed the title
Is there a way to get a specific file from array of thumbnails?
proposal: add a way to get a specific entry from PhotoSize fields
Nov 19, 2023
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:
But the Photo struct contains no other thumbnail sizes except the largest one.
The text was updated successfully, but these errors were encountered: