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

Issue with Returning from Personal Chat When Accessing Mini App from Main Screen and Triggering Telegram Chat to Send a Receipt #1659

Open
icekristal opened this issue Dec 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@icekristal
Copy link


Steps to Reproduce:

  1. Open the Telegram app.
  2. Access a mini app from the main screen, where all chats are displayed.
  3. Use the mini app @office_app_bot to send a receipt to any chat (we use the Telegram.WebApp.switchInlineQuery method).
  4. Attempt to return to the previous screen after sending the receipt.

Expected Behavior:
When returning from the mini app, Telegram should redirect the user to the main screen with all chats.


Actual Behavior:
Telegram closes completely, assuming the user is already on the main screen, and tries to navigate "back," which results in the app shutting down. The issue persists until Telegram is removed from the recent apps list and reopened. However, if the same actions are performed by opening the mini app from the bot's main page or from the bot's chat, this issue does not occur.


Operating System:
The issue was reproduced on Android and iOS, across all recent versions.


Version of Telegram App:
The issue was reproduced on Android and iOS, across all recent versions where mini app launching from the main chat screen was introduced.


Crash ID:
Not applicable.


Logs:
Not applicable.


Additional Details:
The issue occurs because the mini app was accessed from the main screen with all chats. Telegram tries to navigate back, but in this case, the "previous screen" is the app's main screen, causing the crash. However, if the mini app is opened from the bot's main page or the bot's chat, this issue does not occur.

Suggested Solution: Add a setting to ensure that when a Telegram chat is triggered from a mini app, the user is redirected to the main chat screen upon exiting the mini app.

Video Demonstration:
https://drive.google.com/file/d/1MG1RYc36QVCLRIbEXFVo4hnZAEaohKrm/view?usp=drive_link

The video first demonstrates accessing the mini app from the main screen with chats, where the issue occurs. It then shows that everything works correctly when accessing the mini app from the bot's main page or the bot's chat.

@icekristal icekristal added the bug Something isn't working label Dec 26, 2024
@ahmutbalikanli699
Copy link

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

No branches or pull requests

2 participants