Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gothchibjo opened this issue Apr 4, 2021 · 1 comment
Open
Labels

Comments

@gothchibjo
Copy link

gothchibjo commented Apr 4, 2021

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.

@demget
Copy link
Collaborator

demget commented May 23, 2021

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

@demget 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
@demget demget added the feature label Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants