From ed0637d08ed5ffe463235890fa1698c3b76e5c62 Mon Sep 17 00:00:00 2001 From: odiinnn <38395645+odiinnn@users.noreply.github.com> Date: Tue, 14 Oct 2025 11:50:39 +0300 Subject: [PATCH] Update varanWalletUrl format and add logging for request encoding - Changed the varanWalletUrl to use the correct Telegram bot URL format. - Added console logging for the encoded request and bot URL to assist with debugging. --- src/wallet.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wallet.ts b/src/wallet.ts index 2629aa3..ecb4666 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -19,7 +19,7 @@ export class Wallet implements InjectedWindowProvider { private readonly webApp: WebApp, { callbackUrl, connectTimeout, closeAppOnActions }: Required, ) { - this.varanWalletUrl = 'https://t.me/varanwalletbot?startapp='; + this.varanWalletUrl = 'https://t.me/varanwalletbot/start?startapp='; this.store = new WalletStore(); this.callbackUrl = callbackUrl; this.connectTimeout = connectTimeout; @@ -160,8 +160,9 @@ export class Wallet implements InjectedWindowProvider { }; const encodedRequest = encodeRequest(request); + console.log('encodedRequest', encodedRequest); const botUrl = `${this.varanWalletUrl}${encodedRequest}`; - + console.log('botUrl', botUrl); await this.webApp.openTelegramLink(botUrl); return new Promise((resolve) => {