Skip to content

web_app button missing in inline query results on iOS for InlineQueryResultGif and InlineQueryResultPhoto #1687

@necipsagiro

Description

@necipsagiro

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

  1. Create a Telegram bot that uses inline queries.
  2. In the answerInlineQuery method, include the button parameter with a web_app object.
  3. Use InlineQueryResultGif or InlineQueryResultPhoto as the result type.
  4. Send an inline query to the bot from an iOS device.
  5. Observe that the web_app button is not displayed above the results.

Screenshots and Videos

Image
Image

Environment

Device: iPhone 11

iOS version: 18.1.1

App version: 11.7.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions