-
Notifications
You must be signed in to change notification settings - Fork 2.5k
web_app button missing in inline query results on iOS for InlineQueryResultGif and InlineQueryResultPhoto #1687
Description
Checklist
- I am reporting an issue in existing functionality that does not work as intended
- I've searched for existing GitHub issues
Description
The web_app button in inline query results is not displayed on iOS devices when using InlineQueryResultGif or InlineQueryResultPhoto types. The button works as expected on web and Android Telegram clients. This issue prevents users on iOS from easily accessing the web app linked to the inline query results.
Expected Behavior
The web_app button should be displayed above the inline query results on iOS devices, just like it is on web and desktop clients, regardless of the InlineQueryResult type used (specifically InlineQueryResultGif and InlineQueryResultPhoto). Users should be able to tap the button to launch the linked web app.
Actual Behavior
The web_app button is not displayed above the inline query results on iOS devices when using InlineQueryResultGif or InlineQueryResultPhoto. There is no button visible to the user, making it impossible to directly access the linked web app from the inline query results. This issue does not occur when using other InlineQueryResult types (e.g., InlineQueryResultArticle).
Steps to Reproduce
- Create a Telegram bot that uses inline queries.
- In the
answerInlineQuerymethod, include thebuttonparameter with aweb_appobject. - Use
InlineQueryResultGiforInlineQueryResultPhotoas the result type. - Send an inline query to the bot from an iOS device.
- Observe that the
web_appbutton is not displayed above the results.
Screenshots and Videos
Environment
Device: iPhone 11
iOS version: 18.1.1
App version: 11.7.1

