From 1d44edf4ebafa9779ae3a70152030d7648d9a597 Mon Sep 17 00:00:00 2001 From: sdarbinyan Date: Mon, 25 May 2026 16:18:43 +0400 Subject: [PATCH] bots id --- public/telegram-login-dialog.html | 551 +++++++++++++++++++++++++++++ src/app/auth-dialog/auth-dialog.ts | 2 +- 2 files changed, 552 insertions(+), 1 deletion(-) create mode 100644 public/telegram-login-dialog.html diff --git a/public/telegram-login-dialog.html b/public/telegram-login-dialog.html new file mode 100644 index 0000000..c7d71db --- /dev/null +++ b/public/telegram-login-dialog.html @@ -0,0 +1,551 @@ + + + + + + Telegram Login Dialog + + + +
+
+

Telegram Login Dialog

+

+ Standalone extraction of the current login popup: same layout, same visual states, + same QR flow, but with reusable neutral endpoint names for moving into a separate repo. +

+ +
+ + + + + +
+ +
+
+ Start QR session + POST /userauth/qr/create +

Returns a one-time token and Telegram deeplink for the QR image.

+
+
+ Poll QR confirmation + GET /userauth/qr/poll?token=... +

Returns pending, confirmed, or expired. On confirmed, also returns the user session.

+
+
+ Read current session + GET /userauth/session +

Cookie-based session lookup used for initial auth check and fallback polling.

+
+
+ Sync cart after login + POST /usersession/{sessionId} +

Existing cart payload is preserved. Only the namespace is generalized for reuse.

+
+
+ + +
+ +
+ +
+
+ + + + \ No newline at end of file diff --git a/src/app/auth-dialog/auth-dialog.ts b/src/app/auth-dialog/auth-dialog.ts index 68c2ce5..735819b 100644 --- a/src/app/auth-dialog/auth-dialog.ts +++ b/src/app/auth-dialog/auth-dialog.ts @@ -29,7 +29,7 @@ type AuthDialogState = 'loading' | 'ready' | 'checking' | 'expired' | 'error'; }) export class AuthDialogComponent { private readonly http = inject(HttpClient); - private readonly telegramBot = 'DexarSupport_bot'; + private readonly telegramBot = 'myAMLKYCBOT'; private readonly sessionStorageKey = 'fc_session'; private readonly maxPollAttempts = 100;