I am using the Telegram Login Widget on my Vercel website:
https://sugar-gram.vercel.app/web/chatgptSoloLogin.html
The bot is .
In BotFather, the domain is configured correctly and it says: Web login is currently available on sugar-gram.vercel.app for SugarGram .
The interesting part is that Telegram Login works correctly in Firefox.
When I log in from Firefox, Telegram authenticates me and my website receives the user data correctly. I can see the Telegram user information printed on the page.
However, the exact same website does not work in Chrome or Edge when I try to log in with a different Telegram account/phone number.
The flow is:
I click "Log in with Telegram".
Telegram asks me for my phone number.
I enter another valid Telegram phone number.
Telegram displays:
We have sent you a message. Confirm access via Telegram
However, no confirmation message arrives in Telegram.
The login never completes.
This is especially strange because the same Telegram Login Widget works correctly in Firefox.
I have already confirmed that the domain is configured in BotFather.
<!DOCTYPE html>Login Telegram - SugarGram
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; font-family: Arial, sans-serif; background: #f5f5f5; }
.login-container { width: 100%; max-width: 400px; padding: 30px; text-align: center; background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10); }
h1 { margin: 0 0 10px; }
p { margin: 0 0 25px; color: #666; }
#telegram-login { display: flex; justify-content: center; }
#resultado { margin-top: 20px; text-align: left; word-break: break-word; font-size: 13px; }
SugarGram
Inicia sesión con Telegram
function onTelegramAuth(user) {
console.log("Usuario Telegram:", user);
document.getElementById("resultado").innerHTML = "**Login correcto** " +
"ID: " + (user.id || "") + "
" +
"Nombre: " + (user.first_name || "") + "
" +
"Usuario: @" + (user.username || "");
/* * Más adelante aquí podemos enviar user al PHP: * * fetch("loginTelegram.php", { * method: "POST", * headers: { * "Content-Type": "application/json" * }, * body: JSON.stringify(user) * }); */}
Could this be related to browser cookies, third-party cookies, local storage, popup handling, browser fingerprinting, Telegram's authentication session, or some Chrome/Edge-specific restriction?
Is there any Telegram Login configuration or browser-specific issue that could explain why Firefox works but Chrome/Edge does not?