TelegramMessenger / Telegram-iOS

Telegram-iOS
5.91k stars 1.57k forks source link

SwitchIlineQuery doesnt work in mini apps on IOS client #1485

Open danyarubtsov opened 1 month ago

danyarubtsov commented 1 month ago

Checklist

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// with switchInlineQuery works incorrect

  3. Open app via direct link
    1. call switchInlineQuery and select the user with whom you want to open a dialogue for an inline
    2. 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 commented 3 weeks ago

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