Telegram Login Widget doesn't work with MetaMask mobile
Describe the bug
Disclaimer: I'm not sure if this is actually a bug on MetaMask's side or on Telegram. However, I'm posting it here anyway to get some help.
The Telegram Sign In Widget currently does not work with MetaMask mobile. It works fine on desktop with the browser extension.
The issue is that the Telegram OAuth login flow breaks. I'm wondering if the metamask browser maybe doesn't send referrers or other headers most browsers send and Telegram expects. Or something about a missing web API which Telegram uses.
I don't know what the issue is but any thoughts or pointers would be already highly appreciate. I also need to figure out how to contact Telegram about this.
Screenshots If applicable, add screenshots or links to help explain your problem
To Reproduce Steps to reproduce the behavior
- Add the Telegram Sign In Widget to your site
- Sign into Telegram on MetaMask mobile browser
- When you signed in with your details and are about to get redirect back, the
- See error "Bot domain invalid" (this error comes from the Telegram site)

Expected behavior No issues.
Smartphone (please complete the following information):
- Device: iPhone 11 Pro
- OS: iOS 15
- App Version - 3.8.0 (801)
to be added after bug submission by internal support / PM Severity
- How critical is the impact of this bug on a user?
- Add stats if available on % of customers impacted
- Is this visible to all users?
- Is this tech debt?
@dban0001 have you got any ideas/solutions for the issue?
I'm afraid I don't, it's a bit hard to say what goes wrong without knowing how this stuff works internally
I have this problem :(
This issue was closed because it has been stalled for 7 days with no activity. If you feel this was closed in error please reopen and provide evidence on the current production app. Thank you for your contributions.