Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwitchIlineQuery doesnt work in mini apps on IOS client #1485

Open
2 tasks done
danyarubtsov opened this issue Aug 8, 2024 · 1 comment
Open
2 tasks done

SwitchIlineQuery doesnt work in mini apps on IOS client #1485

danyarubtsov opened this issue Aug 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@danyarubtsov
Copy link

Checklist

  • I am reporting an issue in existing functionality that does not work as intended
  • 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 danyarubtsov added the bug Something isn't working label Aug 8, 2024
@danyarubtsov
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
1 participant