telegramdesktop / telegramdesktop/tdesktop
Telegram desktop not displaying InlineQueryResultPhoto correctly
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33k
- Forks
- 7.2k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 12
Description
Summary
I think recently there has been a regression that prevents photo results from inline bots from displaying correctly if photo_width and photo_height aren't provided (which are marked as optional in the API docs -- see https://core.telegram.org/bots/api#inlinequeryresultphoto).
This used to work fine, and it work fine on the Android client so I believe it's a bug with the desktop client, it appears it isn't even trying to send a request to photo_url when width/height aren't given.
Steps to reproduce
- send a query to an inline bot that returns InlineQueryResultPhoto without specifying photo_width / photo_height
Expected behaviour
Client should GET the photo_url from the results and display them
Actual behaviour
Doesn't fetch not display the result
Configuration
Operating system: Ubuntu, bug happens on different versions
Version of Telegram Desktop: 1.2.17 I think the issue was there before the latest update, but was working a couple month ago
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce this on Ubuntu with an inline bot returning InlineQueryResultPhoto without photo_width or photo_height. Start by tracing Telegram Desktop's handling of inline photo results and whether it requests photo_url; done means the result is fetched and displayed without dimensions, matching the expected API behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100