Telegram-iOS icon indicating copy to clipboard operation
Telegram-iOS copied to clipboard

SwitchIlineQuery doesnt work in mini apps on IOS client

Open danyarubtsov opened this issue 1 year ago • 1 comments

Checklist

  • [X] I am reporting an issue in existing functionality that does not work as intended
  • [X] I've searched for existing GitHub issues

Description

At the moment, there are two critical errors in mini-applications related to inline sharing, and both of them are on the iOS client.

  1. When we launch the application through the WebApp Button, we simply cannot use switchInlineQuery, absolutely nothing happens. Moreover, this problem was on this forum 8 months ago, but nothing happened. Link to that issue: https://bugs.telegram.org/c/36392
  2. When we launch through a direct link (like https://t.me/jago_superbot/quiz) and select a person or channel in which we want to share our inline, instead of switching the chat to the selected one, we remain in the chat in which a mini-application was opened, for example a bot or a channel in which there was advertising. That is, selecting users for switchInlineQuery completely does not work through the web app button, and selecting a person does not work through a direct link, which is technically also considered broken functionality. This greatly spoils the viral/referral mechanics, so I hope you can fix this quickly so that mini-applications can continue to develop correctly, finding new audiences through viral mechanics

Expected Behavior

SwitchInlineQuery works on the iOS client as well as on other platforms

Actual Behavior

inline mode opens in personal messages in which the mini-application was opened, and not in the selected contact from the drop-down menu

Steps to Reproduce

WebAppButton with switchInlineQuery doesnt work absoulutly

  1. Open app via web app button from ios
  2. try to call switchInlineQuery,
    1. Nothing happened.

Deep link apps (like t.me/<bot_name>/<app_name> with switchInlineQuery works incorrect

  1. Open app via direct link
  2. call switchInlineQuery and select the user with whom you want to open a dialogue for an inline
  3. you were left in a dialog in which you opened the widget using a direct link, instead of opening the user

Environment

Device: Iphone 15 pro

iOS version: 17.1

App version: Bot api 7.8

danyarubtsov avatar Aug 08 '24 13:08 danyarubtsov

upd: bot switchToChatButton also broken, after we have selected the chat in which we want to call inline, the chat opens, but the selection of the inline menu does not open until we open the input

danyarubtsov avatar Aug 21 '24 09:08 danyarubtsov